2.2 Editing Script

This section explains how to create and edit scripts using the Script Editor.

Adding Element-Level Script

To attach a script to a report element, follow the steps below:

1. Right-click the desired report element and select 'Script' from the context menu. This opens the Script Editor.

2. Click the Script or onClick tab, and enter the desired element-level script.

Alternatively, you can follow the steps below:

The Script tab in the Properties panel pro­vides quick access for making minor edits.

1. Expand the Style Studio Properties panel. (Select 'Properties Pane' from the Style Studio Window menu.)

2. Select the Script tab in the Properties panel. Click the 'Script' or 'onClick' radio button, and enter the desired element-level script.

Adding Report-Level Script

To create a report level handler, follow the steps below:

Hint: Check the sta­tus bar at the bottom of Style Studio to make sure no element is selected.

1. Click in a blank area of the report to deselect all elements.

2. Right-click in a blank area of the report and select 'Script' from the context menu.

This opens the Script Editor, which has four tabs corresponding to the four report-level handlers: onLoad, onInit, onPageBreak, and onPrint.

3. Click the desired tab, and enter the report-level script.

See Also

Element Script, for information about scripting elements.

Report Handlers, for information about onLoad, onInit, onPageBreak, onPrint.

Using the Default Script Editor, for information about entering the script.

<< Functions © 1996-2013 InetSoft Technology Corporation (v11.5) 2.2.1 Locating Scripted Elements >>