Question

2
Replies
1782
Views
OleksandrByelyenov Member since 2016 40 posts
Sberbank
Posted: 3 years ago
Last activity: 3 years ago
Closed

Does the Obj-Open-By-Handle method lock an object if it set pxMethodStatus to "Fail"?

I pass some parameters as "Lock = true" and "ReleaseOnCommit = true"
The Obj-Open-By-Handle fails because of these situations:

  • If the instance is locked by another requestor, the object is opened to the clipboard but the method returns a Fail status.
  • If the key supplied does not match the key of an instance in the database, the system creates a page of the indicated class that is empty except for the pxObjClass property, and returns a Fail status
  • If you selected the Lock parameter (on the Locking tab of the Class form or in some cases the Class Group form) but the class does not allow locking, the object is opened, but the method returns a Warn status.
  • If you selected the Lock parameter but at runtime the requestor's access role does not allow the requestor to update objects of that class, the object is opened but without a lock is, and the method returns a Fail status.

Is it necessary to Page-Unlock objects if the method returns "Fail" in pxMethodStatus?

How can I safely update several objects?

Low-Code App Development Dev/Designer Studio Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn