Skip to content

Instantly share code, notes, and snippets.

@setap
Created March 28, 2014 12:22
Show Gist options
  • Select an option

  • Save setap/9831487 to your computer and use it in GitHub Desktop.

Select an option

Save setap/9831487 to your computer and use it in GitHub Desktop.
HP Service Manager. How to unlock a record
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