Defining field hooks

You can define hooks for a field in a record. You can customize hooks by incorporating scripts that use the HCL Compass API.

Procedure

To define a field hook:
  1. Start the Designer.
  2. In the Schema Repository Explorer view, expand the Record Types folder in your schema and then double-click on a record type.
    The record type editor opens.
  3. Click the Fields tab to view the Record Fields grid.
    The Record Fields grid contains a column for each type of predefined field hook.
  4. Right-click on a field hook in the grid and select the method for editing the script.
    The Scripts editor opens.
  5. Define the hook using the HCL Compass API.

Results

The hook will be compiled when you validate the schema, and any syntax or grammar errors will be marked.

For more information, see Field hooks and Field hook examples.