Property Editor: Event

On the Events tab of the Property Editor, specify the events for the macro object.

Allowable events are messages or the execution of SQL code. The event trigger may be set to either before the form opens or after the form is closed.

  1. Use the + drop down to add a Message Action or SQL Action:

    The relevant Property Editor will open - for example, the SQL Action:

  1. Enter a Name and Description for the event in the fields provided.

  2. Select the required Timing of Event option to determine when the event occurs.

    Note: AfterClose events are triggered by:

    • Closing the object

    • Closing the Application

    • Logging out of the current configuration database connection

  3. For SQL Action events, select whether the script will return a result using the options provided and,

    1. Enter or build the SQL to execute for the event.

  4. For Message Action events, enter the Text of the message to be displayed in the Details section, and

    1. Select whether to Ask for confirmation before proceeding (closing the message that will display).

If a result code is returned by the SQL Action,

  1. Enter the text of the messages that will be displayed for result = 1 (confirm before proceeding) and result = 2 (abort).

  2. Click OK to save the event details.

Macros