Highlighted
Absent Member.. Tutino Absent Member..
Absent Member..
1520 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
Pikutj Absent Member.
Absent Member.

Re: Calling apm.stop.clock from javascript

Jump to solution

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
Pikutj Absent Member.
Absent Member.

Re: Calling apm.stop.clock from javascript

Jump to solution

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,

Absent Member.. Tutino Absent Member..
Absent Member..

Re: Calling apm.stop.clock from javascript

Jump to solution

Thanks a lot Pikutj!!

0 Likes
Pikutj Absent Member.
Absent Member.

Re: Calling apm.stop.clock from javascript

Jump to solution

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.