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