Use the Designer to enable pessimistic record locking.
For record types that need pessimistic record locking, edit the schema
by performing the following steps:
- Check out the schema and navigate to the desired record type.
- Add a new BASE action named LockRecord.
- 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);
- Create a new record script named Unlock. For an example script, see r_examples_pess_record_lock.htm.
- Add a new RECORD_SCRIPT_ALIAS action named Unlock.
- Set the record script to your new Unlock script.
- Test the schema to ensure that pessimistic record locking is working.
- Check in the schema.
- Upgrade the user database.