RAD routine: us.js.call

A RAD routine that can invoke any JavaScript function in the ScriptLibrary. This routine enables you to run a JavaScript function without connecting to the Service Manager server via a client.

Routine

us.js.call

Parameters

The following parameters are valid for the us.js.call routine:

Parameter Data type Required Description
script.function string Yes Refers to a script in the ScriptLibrary and a particular function within the script.
arg,1

array

(characters)

The required arguments depend upon the requirements of the script you call. The arguments passed to JavaScript. You can pass an infinite number of arguments. If an argument need be enclosed in double quotes in JavaScript, use \\\" to enclose the argument when you use this routine. For example, if a JavaScript function has arguments: {"abc", "def"}, specify these arguments as {\\\"abc\\\", \\\"def\\\"} in this parameter.
arg,2   No This parameter is for the returned value of the JavaScript function. When you use this routine in the operating system's command prompt, set this parameter to NULL.