You are here: Reference > Activity methods > Page-Unlock

  Page-Unlock method

Methods and instructions by function

Use this method to unlock a page in the unusual situation that the page was locked during the Obj-Open operation but the ReleaseOnCommit parameter was not selected.

Typically, when the Obj-Open method opens and locks an object from the database, the ReleaseOnCommit parameter is selected. When a later Commit method executes, the system automatically releases the lock.

However, when the ReleaseOnCommit parameter is not selected, the Commit operation has no effect on the lock, which remains in force. This capability facilitates multiple Commit operations on one page without the need to re-acquire the lock.

You can also use this method to release a lock that is no longer needed, regardless of the ReleaseOnCommit parameter value.

Parameters

This method has no parameters.

Results

The page identified in the Step Page column (or the primary page, if the Step Page column is blank) is unlocked.

Checking the method status

This method updates the pxMethodStatus property. See How to test method results using a transition.

Related topics Commit method
Obj-Open method
Understanding object locking

UpMethods and instructions by function