Enabling pessimistic record locking

Use the Designer to enable pessimistic record locking.
For record types that need pessimistic record locking, edit the schema by performing the following steps:
  1. Check out the schema and navigate to the desired record type.
  2. Add a new BASE action named LockRecord.
  3. Add an Initialization hook to the action.
  4. In the Script Editor, call the LockRecord API method.
    In Perl, the call represents the following line of code:

    $entity->LockRecord (0);

  5. Create a new record script named Unlock. For an example script, see r_examples_pess_record_lock.htm.
  6. Add a new RECORD_SCRIPT_ALIAS action named Unlock.
  7. Set the record script to your new Unlock script.
  8. Test the schema to ensure that pessimistic record locking is working.
  9. Check in the schema.
  10. Upgrade the user database.

Feedback