Created
March 28, 2014 12:22
-
-
Save setap/9831487 to your computer and use it in GitHub Desktop.
HP Service Manager. How to unlock a record
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function unlock(resource) | |
| { | |
| var rteReturnValue = new SCDatum(); | |
| var rteNames = new SCDatum(); | |
| rteNames.push("name"); | |
| var rteValues = new SCDatum(); | |
| rteValues.setType(8); | |
| rteValues=system.functions.insert(rteValues, 0, 1, resource); | |
| system.functions.rtecall("callrad", | |
| rteReturnValue, | |
| "unlock", //RAD app name | |
| rteNames, | |
| rteValues, | |
| false); //false to run in same thread, true to run in new thread | |
| return 1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment