Highlighted
Absent Member.. Absent Member..
Absent Member..
1680 views

Calling apm.stop.clock from javascript

Jump to solution

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

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

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,

View solution in original post

3 Replies
Highlighted
Absent Member.
Absent Member.

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,

View solution in original post

Highlighted
Absent Member.. Absent Member..
Absent Member..

Thanks a lot Pikutj!!

0 Likes
Highlighted
Absent Member.
Absent Member.

Little correction.

use inverted commas in passing values in arrays as below,

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

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.