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?