FORMULA LANGUAGE


Examples: @DocLock
If a user wants to lock a document opened in edit mode, the following four hotspot buttons entitled LockingEnabled, Status, Lock, and Unlock will enable her to do so.

First, to determine if the current document can be locked, the user checks if document locking is enabled for the database. When the user clicks the LockingEnabled button, which contains the following code, it returns 1 to indicate that locking is enabled.

@Prompt([OK];"Checking if document locking is enabled";@DocLock([LOCKINGENABLED]))

If locking is enabled, the user next clicks the Status button, which contains the following code. If it returns an empty message box, the current document is not locked.

@Prompt([OK];"Checking document status";@DocLock([STATUS]))

Once the user clicks the Lock hotspot button which contains the following code, the administrative server locks the document. If the user clicks the Status button again, a message box appears that displays the current user's hierarchical name.

@DocLock([LOCK])

If the user then clicks the Unlock hotspot button that contains the following code, the administrative server unlocks the document. When the user clicks the Status button again, an empty message box appears.

@DocLock([UNLOCK])

See Also