Adding action hooks

You can add Access Control, Initialization, Validation, Commit, and Notification hooks to an action.

About this task

To add an action hook:

Procedure

  1. Start the Designer.
  2. In the Workspace, expand Record Types and then expand the desired record type.
  3. Expand States and Actions and double-click Actions.
  4. In the Actions grid, click in the column that corresponds to the hook that you want to add and click Scripts > Basic or Perl.

    The default scripting language is VBScript for Windows and Perl for the UNIX system. For more information, see Scripting languages.

    If you are adding an Access Control hook, you can also select All Users to provide access to all users or select User Groups to provide access to users of specified user groups. If you select User Groups, verify that the groups are subscribed to all databases the schema uses.

    If Instant Editing Mode is enabled, the Script editor starts. If Instant Editing Mode is disabled, double-click the cell to start the editor.

  5. Edit the hook. The calling syntax for that hook is added in the Script editor. The calling syntax cannot be edited
  6. To compile the script, click Hooks > Compile.