- Select the report element or data source or data set for which you want to write an event handler.
- Choose the Script tab.
- Choose an event handler from the drop-down list of methods.
- Enter the event handler code in the script editor.
The following illustration demonstrates entering a line of code in the onStart method of a Table element.