Defining field hooks

You can define hooks for a field in a record. You can customize hooks by incorporating scripts that use the Rational® ClearQuest® API.

About this task

To define a field hook:

Procedure

  1. Start the Designer.
  2. To display the Fields grid, in the Workspace expand a record type and double-click Fields.
  3. For a field in the Fields grid, select a hook type by right-clicking in one of the columns in the grid for the field and selecting Scripts.
  4. Select a scripting language. The Scripts editor appears.
  5. Define the hook using the ClearQuest API.
  6. When you finish editing a scripted hook, click Hooks > Compile to check the syntax of your code.

Results

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