Using input and output parameters with a scripted data set
The scripted data set JavaScript event handler methods have two arrays you can use to access parameters, inputParams and outputParams. The inputParams array contains one string for every parameter defined as input. The outputParams array contains one string for every parameter whose direction is defined as output.
For example, assume that you have a scripted data set with an input and an output parameter, as shown in Figure 40‑8.
Figure 40‑8 A scripted data set with input and output parameters
You can get and set the values of the out_msg and in_count parameters by using the inputParams and outputParams arrays as in the following example:
outputParams[ "out_msg" ] = "Total rows: " +
inputParams[ "in_count"];
You can access a parameter in the array either by the name of the parameter or by a 1-based index value. The inputParams and outputParams arrays are not accessible to Java event handlers.