Run Script response type
Event handlers with a Run Script response type allow the use of scripts to handle the event. To define a Run Script event handler, you must specify the name of the script to run and a comma-delimited list of parameters to pass to the script. You can specify literal, property, variable, and component values as parameters.
Inside the script, access parameters by using the
GetParameter()
function. GetParameter(0)
returns the
first parameter value; GetParameter(1)
returns the second parameter value;
and so on.
Scripts can also access application objects and data through the scripting API.
To indicate success, the script returns a zero (0). To indicate failure, the script returns a non-zero value.