LockTree method: Tree class
Syntax
LockTree()
Description
Use the LockTree method to check out a tree for editing. Use this method to prevent saving conflicts when you have multiple users accessing the same tree, using both the Tree API and PeopleSoft Tree Manager. To release a tree, use the UnlockTree method.
Note:
In order to use this method, you must have Tree multi-user environment enabled. You can check if it is enabled by using UseUpdateReservation Tree property.
To verify if a tree is already locked, use the LockStatus property.
This method can be used only on an open tree, not on a closed tree. This means you must have opened the tree with the Open method.
Parameters
None.
Returns
An integer: 0 if locked successfully.