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

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.

circle-exclamation

Importing external JS and OZR - Examplearrow-up-right

circle-info

For details on Viewer parameters, refer to herearrow-up-right.

Script()

Run an OZ viewer toolbar command without parameter values

circle-exclamation

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.

circle-info

For details on Viewer functions, refer to herearrow-up-right.

Key Viewer Events

OZEFormInputEventCommand

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

  • Set the eform.inputeventcommand option to true.

Examplearrow-up-right

circle-exclamation

OZUserEvent

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

Examplearrow-up-right

TriggerExternalEvent

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

  • Set the eform.inputeventcommand option to true

Examplearrow-up-right

circle-info

For details on Viewer events, refer to herearrow-up-right

Last updated