Setting Up Event Handling

The following is set in repository parameters:

NOTE. Only Fore units are used as an event handler.

To open the Event Handling tab of the Parameters dialog box:

  1. Go to the object navigator.

  2. Select the Tools > Parameters main menu item.

  3. Go to the Event Handling tab after the Parameters dialog box opens.

NOTE. Event handling can be enabled only in the desktop application.

Global Handler of Report Calculation

The event handler sends express report parameters used for calculation and enables the user to perform the action determined by the code on each event occurrence.

To set up express report event handling:

  1. Select the Global Handler of Report Calculation and Express Reports checkboxes.

  2. Select the assembly, unit or form where class implementing express report events are described.

  3. Select a class containing event handlers. The Class drop-down list will display all classes of selected assembly, unit or form.

Handling of events occurred on working with report can be set up for express reports:

Fore example

Global Handler of Update Events

The update handler generates information about update installation process:

To set up update event handling:

  1. Select the Global Handler of Update Events checkbox.

  2. Select the assembly, unit or form where the class implementing update events is described.

  3. Select the class containing event handlers. The Class drop-down list contains all classes of selected assembly, unit or form.

NOTE. The class must inherit the UpdateCallBack class and contain the method with the following signature:
Function OnCallBack(<param1>: MetabaseUpdateCallbackReason; <param1>: IMetabaseUpdate) : Boolean.

Fore example

See also:

Working with Express Report