The proc.getVariable() function

Use the proc.getVariable() function to get the value of the specified variable.

Syntax

proc.getVariable('global_variable');
Parameter Description
global_variable It specifies the global variable the value of which you want to fetch. For more information about global variables, see the System defined global variables section.

Example

/*JavaScript*/
var fetchedRowsNum = proc.getVariable('DSQAO_NUM_FETCHED');
proc.messageBox('The value of DSQAO_NUM_FETCHED is ' + fetchedRowsNum);

The value of the DSQAO_NUM_FETCHED global variable is saved to the fetchedRowsNum variable and displayed in the message box.