Highlighted
Frequent Visitor..
Frequent Visitor..
136 views

Can't unblock ticket from displayoption

Hi

I want to kill system locks of some ticket from displayoptions with callrad unlock, but it does not work.

I'm trying many ways, for example:

1. RAD in DisplayOptions:

se.unlock.object with parameters: string1 -  "probsummary;"+number in $L.file , query - probsummary, record - $L.object.

2. Call script with parameter res = "probsummary;"+number in $L.file 

function UnlockObject(res)

{

var rteReturnValue = new SCDatum();

var rteNames = new SCDatum();

var rteValues = new SCDatum();

 

rteNames.push("name")

rteValues.push(res)

system.functions.rtecall("callrad",rteReturnValue,"unlock",rteNames,rteValues,true)

}

3.  Another one script:

function unlockrecord(record)

{

var success;

var rteReturnValue = new SCDatum();

var lockName = new SCDatum();

lockName.setType(2); 

system.functions.rtecall("tag", rteReturnValue, lockName, record );

success = Unlock( "cm3r;C354039");

if( success == RC_SUCCESS )

return true;

else

return false;

}

All this methods does not work.

If somebody knows how this Button can be created, help me please.

Thanks

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.