Creating Event Handlers
In its most basic form, an event handler consists of these parts:
- An association with a particular application event
 - A handler sequence number
 - One or more actions to perform when the application event is triggered
 
Each event handler is uniquely defined in the system by the combination of an event name and a handler sequence number. Both of these are set on the Event Handlers form. Event handlers must have one or more associated event actions.
To create an event handler:
- Open the Event Handlers form.
 - Click or press .
 - Select .
 - In the Event Name field, select an existing application event or specify a new event name for the handler that you want to define.
 - Specify a description for the handler. This description is helpful when you have multiple handlers with the same event name. This description allows you to find the appropriate handler in a list.
 - Optionally, use the Keep With and Chronology fields to control the handler sequence with respect to other developers' handlers.
 - Save the new event handler.
 - Click to open the Event Actions form.
 - Create the actions to be performed when this event handler is executed.
 - Save your changes.
 - Close the Event Actions form.
 - On the Event Handlers form, set the other options as desired. For information about these options, see the online help for each option.
 - To see a graphical (diagrammatic) representation of the event handler and its actions, click . This button opens the Event Handler Diagram form. This form allows you to edit and add event actions to the event handler flow.
 - Save the event handler.
 
Note: Application events and event
            handlers are defined for an application database and not a particular site. To restrict
            an event handler to only run at certain sites on a database, on the Event Handlers form, specify the sites in the Applies To Sites field.