Viewer APIs

Learn about Viewer API to control the OZ viewer in the application. Viewer API consists of viewer parameters, functions, and events.

Viewer Integration

Example: Hide toolbar

Key Viewer Functions

sendToActionScript()

Initialize Viewer environments and set viewer feature options.

Setting Viewer parameters in OZR (OnStartUp of the ReportTemplate)

  • At design time

  • When the parameter option values never change

Setting Viewer parameters in HTML (sendToActionScript())

  • At runtime

  • When parameter option values change by condition (user, device, business rule)

  • Settings in OZR take precedence over settings in HTML.

Importing external JS and OZR - Example

For details on Viewer parameters, refer to here.

Script()

Run an OZ viewer toolbar command without parameter values

ScriptEx()

Run an OZ viewer toolbar command with parameter values

GetInformation()

Get various information on the OZR from the viewer such as datasets, parameters, input data, page index, number of pages, etc.

For details on Viewer functions, refer to here.

Key Viewer Events

OZEFormInputEventCommand

  • The application can catch input events sent πŸ‘ˆ from the Viewer.

  • Set the eform.inputeventcommand option to true.

Example

OZUserEvent

  • The application can catch user-defined events sent πŸ‘ˆ from the Viewer.

Example

TriggerExternalEvent

  • The application can send events πŸ‘‰ to the Viewer (trigger external events of the OZR).

  • Set the eform.inputeventcommand option to true

Example

For details on Viewer events, refer to here

Last updated

Was this helpful?