3.4.1 onInit Handler

A Viewsheet's onInit script is executed only once, when the Viewsheet it first loaded. It is ideal for one-time initialization tasks, such as defining Viewsheet parameters and variables.

A variable declared in onInit script will have global scope, and be accessible to individual component scripts. To declare a local variable with the same name elsewhere, use the 'var' keyword in the declaration to remove ambiguity.

See Also

onLoad Handler, to declare report-level variables, or validate user parameters.

<< 3.4 Adding Viewsheet Script © 1996-2013 InetSoft Technology Corporation (v11.4) 3.4.2 onLoad Handler >>