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:
- Check out the schema and select the desired record type.
- Expand Record Scripts and add a new record
script named Lock.
- Add a new RECORD_SCRIPT_ALIAS action named Lock.
- Next, add an Initialization hook to the
action.
- In the Script Editor, call the LockRecord API method. In
Perl, the call represents the following line of code:
$entity->LockRecord (0);
- Set the Record Script to the Lock script.
- Test the schema to ensure that pessimistic record locking for that
record type is working.
- Check in the schema.
- Upgrade the user database.