HPE Service Manager / Service Center Support and News Forum
Showing results for 
Search instead for 
Do you mean 

Calling apm.stop.clock from javascript

SOLVED
Go to Solution
Advisor

Calling apm.stop.clock from javascript

Hello everyone,

                             Does anybody knows how to call the rad application "apm.stop.clock" from javscript? I need to stop the clocks from a script.

 

Thanks in advance!

Tino

1 ACCEPTED SOLUTIONS
Valued Contributor

Re: Calling apm.stop.clock from javascript

Hello Tino,

 

Use rtecall fucnation to caal the subroutine apm.stop.clock as follow :

system.functions.rtecall("callrad",rteReturnValue,"apm.stop.clock",rteNames,rteValues,false)

script would be like,

var rteReturnValue = new SCDatum();
var rteNames = new SCDatum();
var rteValues = new SCDatum();

//Parameter names for RAD
rteNames.push(<parameter1>);
rteNames.push(<parameter2>);
//add any number of parameter according to requirement
similarly add parameters to rtevalue

rteNames.setType(8); //type array
rteValue.setType(8); //type array


system.functions.rtecall("callrad",rteReturnValue,"apm.stop.clock",rteNames,rteValues,false)


regards,

3 REPLIES
Valued Contributor

Re: Calling apm.stop.clock from javascript

Hello Tino,

 

Use rtecall fucnation to caal the subroutine apm.stop.clock as follow :

system.functions.rtecall("callrad",rteReturnValue,"apm.stop.clock",rteNames,rteValues,false)

script would be like,

var rteReturnValue = new SCDatum();
var rteNames = new SCDatum();
var rteValues = new SCDatum();

//Parameter names for RAD
rteNames.push(<parameter1>);
rteNames.push(<parameter2>);
//add any number of parameter according to requirement
similarly add parameters to rtevalue

rteNames.setType(8); //type array
rteValue.setType(8); //type array


system.functions.rtecall("callrad",rteReturnValue,"apm.stop.clock",rteNames,rteValues,false)


regards,

Advisor

Re: Calling apm.stop.clock from javascript

Thanks a lot Pikutj!!

Highlighted
Valued Contributor

Re: Calling apm.stop.clock from javascript

Little correction.

use inverted commas in passing values in arrays as below,

rteNames.push("name"); // clock name
rteNames.push("prompt");