Writing a JavaScript event handler
Each JavaScript event handler is associated with a specific event for a particular element. The Script tab provides access to the events available for the element. Each element type supports a particular set of events. Use the Script tab in BIRT Report Designer to write a JavaScript event handler.
How to use BIRT Report Designer to write a JavaScript event handler
1 In Outline, select the report element, data source, or data set for which to write an event handler.
2 Choose the Script tab.
3 Select an event handler from the drop-down list of methods.
4 Type the event handler code in the script editor.
Figure 37‑1 shows a line of code in the onPrepare( ) method of a List element.
Figure 22-1 Code entry for the onPrepare( ) methodFigure 22-1 Code entry for the onPrepare( ) method
Figure 37‑1 Code entry for the onPrepare( ) method