Back Forward Class form
Completing the Locking tab

  1. About 
  2. New 
  3. General 
  4. Locking 
  5. External Mapping 
  6. Advanced 
  7. History 
  1. More... 

Information on this tab is used only for concrete classes that do not belong to a class group.

Select the Allow Locking box to cause the system to lock open instances of the class, that is, instances copied from the database into the clipboard using the Obj-Open method or similar methods.

For concrete classes that do belong to a class group, leave this tab blank. The Lock field on the Class Group form controls locking for all the classes in the group. B-13319 See Concepts — Understanding object locking.

Field

Description

Keys  
Key Name

add rowOptional. Leave this array blank in all but rare circumstances. If this field is blank, PRPC uses the Keys properties from the General tab of this form to define a lock string.

In unusual situations, you can define a non-standard lock for the class by listing here the properties that together define the lock key. PRPC concatenates the value of these properties (rather than the properties on the General tab) to form a lock key for the instance. The resulting value may at runtime apply to multiple open objects, locking not only this object but all other open objects (even objects of other classes) with the same completed lock key value.

Key Caption

Optional. Not used.

Locking  
Allow Locking?

For concrete classes, select this box except in rare situations. Select to allow the system to lock open instances of the class when the Obj-Open or Obj-Open-By-Handle method specifies locking. B-18716 B-19005 SR-2198 SR-7147

However, for concrete classes derived from the Rule- base class, leave cleared. GENTJ 8/21/07 contradict R-17231 To restrict updates to individual rules to one developer at a time, use rule check-out (by updating the RuleSet to allow checkout, and updating the Operator ID to enable checkout), not locks.

If this class is part of a class group, the Lock field on the class group form supersedes this Allow Locking? value.

If selected, a user cannot save or delete an instance within the scope of this class group unless that user holds a lock on the object. Typically, activities acquire locks when they open an instance to the clipboard. C-1804

Tip If Allow locking? is selected, then when you use the Obj-Open, Obj-Open-by-Handle or Obj-Refresh-and-Lock method in an activity to open an instance within the scope of this class group (with intent to update and save the instance), select the Lock checkbox parameter for the method.

Up About Class rules