Question

2
Replies
1818
Views
Close popover
Oleksandr Bielienov (OleksandrByelyenov)
Sberbank
Software Engineer
Sberbank
UA
OleksandrByelyenov Member since 2016 40 posts
Sberbank
Posted: October 10, 2017
Last activity: October 11, 2017
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?

Enterprise Application Development Dev/Designer Studio Data Integration Java and Activities
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.