BlueCielo TeamWork 2012 VBScript API Reference | BlueCielo ECM Solutions

You are here: Understanding TeamWork event procedures > Creating and editing event procedures

Creating and editing event procedures

By default, a new vault has no custom event procedures. Only the built-in TeamWork 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 TeamWork event procedures are objects. You can view all of the TeamWork objects and their methods and properties with the Object Browser of the TeamWork Script Editor. Some of the TeamWork event procedures accept as parameters one or more predefined TeamWork constants. The available TeamWork constants can also be found in the Object Browser in the TeamWork Script Editor.

To create or edit an event procedure:

  1. In Configurator, on the Edit menu, select Edit Events. The TeamWork 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. 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.

Related concepts

Understanding TeamWork event procedures

Understanding the names of events

Understanding batch events

Understanding the order of events

Related information

The TeamWork API constants


Copyright © 2000-2012 BlueCielo ECM Solutions

www.bluecieloecm.com