Locking

Locking strategy to use when saving data for this entity. Valid values are Cautious (default), Optimistic, or No Updates.

Value Description
Cautious An occurrence is locked when a user makes the first modification to a database field in the entity, or when an occurrence is included.
Optimistic An occurrence is not locked until the modified data is stored. This means that the lock is applied at the last possible moment.
No Updates All write, delete, and lock ProcScript statements are ignored. The user can modify data in the form, but the changes are not saved. Use this option to prevent updates for one or more entities in a form, while leaving the remaining entities unrestricted.

Description

Using the read/lock ProcScript statement, you can also use paranoid locking to lock an occurrence at the moment it is read, .

Note:  Your choice of locking has important consequences for the performance and usability of the application at run time, particularly if you change the setting from Cautious to Optimistic, or the other way around. It is recommended that you leave the default specified for the Modeled Entity in place.

Applies To

Related Topics