Enabling pessimistic record locking
Use the Designer to enable pessimistic record locking.
About this task
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.
Enabling pessimistic record locking without initiating an action
You can enable pessimistic record locking without initiating an action.
Examples of pessimistic record locking hook code
You can use these sample scripts to help you enable and manage pessimistic record locking.
Parent topic:
Record locking
Feedback