Creating Event Handlers
In its most basic form, an event handler consists of these parts:
- An association with a particular event
- A handler sequence number
- One or more actions to perform when the event is triggered
To create an event handler:
- Open the Event Handlers form.
- Click the Filter-in-Place tool bar button.
- Select .
- In the Event Name field, either select an existing event, or specify a new event name for which you want to define a handler.
- Specify a description for the handler. This description is helpful when you have multiple handlers with the same name, because it 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 Event Actions form and create the actions to be performed when this event handler is executed. to open the
- Save your changes and close the Event Actions form.
- Set the other options on the Event Handlers form 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 Event Handler Diagram form. This form also allows you to edit and even add event actions to the event handler flow. , which opens the
- Save the event handler.
Note: Events and event handlers are defined for an application database,
not a particular site. To allow an event handler to run only at certain sites
on a database, specify the sites in the
Applies To Sites field on
the
Event Handlers form.
For more information, see the section about event handlers in the Guide to the Application Event System.