3.4.2 onLoad Handler
The onLoad script does not execute when you refresh a Preview by clicking the Preview tab. To run the onLoad script, create a new Preview. (See Previewing a Viewsheet in Dashboard Design.)
The onLoad handler is similar to the onInit handler, and is executed following onInit upon Viewsheet loading. However, unlike onInit, an onLoad script is executed every time the Viewsheet is refreshed. Because the Viewsheet is refreshed in response to most user interactions, including selections, the onLoad handler gives you the ability to dynamically modify multiple elements from a central location.
A variable declared in onLoad 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
The Chart bindingInfo Property, for information on data binding for Charts.
onInit Handler, to declare session-level variables or report parameters.
| << 3.4.1 onInit Handler | © 1996-2013 InetSoft Technology Corporation (v11.5) | 4 Accessing User Input in Script >> |