Enabling pessimistic record locking without initiating an action

You can also enable pessimistic record locking without having to initiate an action. You can enable it by adding a record script to the desired record type.
Use the ClearQuest Designer to edit the schema and perform the following steps:
  1. Check out the schema and select the desired record type.
  2. Expand Record Scripts and add a new record script named Lock.
  3. Add a new RECORD_SCRIPT_ALIAS action named Lock.
  4. Next, add an Initialization hook to the action.
  5. In the Script Editor, call the LockRecord API method. In Perl, the call represents the following line of code:

    $entity->LockRecord (0);

  6. Set the Record Script to the Lock script.
  7. Test the schema to ensure that pessimistic record locking for that record type is working.
  8. Check in the schema.
  9. Upgrade the user database.

Feedback