The load function loads JavaScript code that is defined in a dataset variable for use in the pre-execution or post-execution section of any operator or in the SourceCode section of the Run JavaScript Operator. The loaded JavaScript code is only good for the duration of the pre-execution, post-execution, or SourceCode section where it is loaded.
Syntax
load(jsCode)
Arguments
Specifies the JavaScript code to load.
Return Value
No value returned (void).
Examples
function convertToUpperCase(sValue) {return sValue.toUpperCase()};
load(Datasets["Common"].jsCode);
Process.ucValue = convertToUpperCase("helloworld");
|
Copyright © 2014 CA.
All rights reserved.
|
|