Service Manager / Service Center Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling apm.stop.clock from javascript

SOLVED
Go to solution
Highlighted
Tutino
Super Collector

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

3 REPLIES
Pikutj
Member
Solution

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,

Tutino
Super Collector

Re: Calling apm.stop.clock from javascript

Thanks a lot Pikutj!!

Pikutj
Member

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");

//Add this to "OnDomLoad" event