LockProvisional (NotesView - LotusScript®)

Locks an view provisionally.

Note: This method is new with Release 6.

Defined in

NotesView

Syntax

flag = notesView .LockProvisional( [ name ] )

Parameters

name

Array of type String. Optional. The names of the lock holders. Each lock holder must be a user or group. Defaults to one lock holder: the effective user. The empty string ("") is not permitted in the array.

Return value

flag

Boolean.

  • True if the lock is placed.
  • False if the lock is not placed.

Usage

IsDesignLockingEnabled in NotesDatabase must be True or this method raises an error.

The following actions occur depending on the current lock status:

  • If the view is not locked, this method places the lock and returns True.
  • If the view is locked and the current user is one of the lock holders, this method returns True.
  • If the view is locked and the current user is not one of the lock holders, this method returns False.

If the view is modified by another user before the lock can be placed, this method raises an error.

Example