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:
- Start the Designer.
-
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.
- Click the Fields tab to view the
Record Fields grid.
The Record Fields grid contains a column
for each type of predefined field hook.
- Right-click on a field hook in the grid and
select the method for editing the script.
The Scripts
editor opens.
-
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.