Create and Edit Event Procedures

By default, a new vault has no custom event procedures. Only the built-in Meridian functionality will execute when events occur. All custom procedures (other than event procedures) and functions are listed in the General category and do not react directly to events. If you write a procedure or function that is to be called from within one of the event procedures, it will be listed in the General category.

Many of the parameters of the Meridian event procedures are objects. You can view all of the Meridian objects and their methods and properties with the Object Browser of the Meridian Enterprise Script Editor. Some of the Meridian event procedures accept as parameters one or more predefined Meridian constants. The available Meridian constants can also be found in the Object Browser in the Meridian Enterprise Script Editor.

To create or edit an event procedure:

  1. In Configurator, on the Edit menu, select Edit Events.

    The Meridian Enterprise Script Editor appears showing the existing custom event procedures, if any.

  2. From the Events and Procedures list, select the event that you want to create or edit.

    If a custom event procedure already exists, the code pane is scrolled to show the procedure's definition and the mouse cursor is moved to the first line of the procedure. If a custom event procedure does not already exist, a prototype of the definition is added to the end of the existing code and the mouse cursor is moved to the first line of the procedure.

  3. Add or edit code for the procedure using the Object Browser and Events and Procedures list as necessary.

  4. Choose between two options:

    • Click OK to keep your changes when you are finished editing.

    • Click Cancel to abandon your changes.

  5. On the Vault menu, select Save to save your changes to the vault where they are available to users the next time they open the vault.

2023