Features

Document Locks

Document locking is a common step done within ERP software when an account or document is opened.   For example, a customer record or an invoice is locked when it is being changed so that another user does not make changes at the same.  Like all database applications, EBMS uses locking to ensure data consistency. EBMS employs both optimistic and pessimistic locking strategies.

Document Locking Feature Introduction 4 minutes

Optimistic Locking

Optimistic locking assumes that no other user is writing the same data at the same time.  This method of locking is delayed until just prior to saving changes, at which point proposed changes are compared with data originally read and the current state of the database.  If another user has modified the same changed data, the second user's changes cannot be saved.  EBMS always performs optimistic locking, and it is implemented at the database record level.

Pessimistic Locking

Pessimistic locking implements software locks immediately when an account or document is opened with the perception that the user intends to modify information.  The pessimistic lock greatly decreases the likelihood of being unable to save changes since the concurrent modification are limited.  EBMS optionally performs pessimistic locking based on an account or the complete document including detail lines.

A message can appear if someone already has the same account or document open with the following options:

  1. Open Read Only:  Allows the 2nd user to view the information with the confidence that data will not be changed.

  2. Notify Me:  This option notifies the user when the document is saved by the other EBMS user.   Review the following section for more details.

  3. Edit Anyway:   This option risks the chance of common data being changed by multiple users.   

  4. Cancel:  Come back later to make changes.

This message is a warning when the document lock happens to help the user determine the risk involved with multiple users editing simultaneously.  EBMS will merge when possible and will only give the Your Data will not be saved message if an actual conflict occurs.   

Enable Pessimistic Locks

Complete the following steps to enable lock warnings within documents that have a high opportunity for data conflicts.  

  1. Enable lock warnings by selecting File > System Options > Locking tab from the main EBMS menu.  

  2. Select the Enabled option to enable lock warnings.  Large documents with extensive data changes or a document with a high chance of conflicts should have this option checked. Click OK to enable.

Notify Me  

A user may wish to be notified when a lock is released or when another user has closed the selected document.  Complete the following steps to enable EBMS to notify me.

  1. Click on the Notify Me button to prompt the system to notify you when the document lock is released.
  2. The system will give you the following options:

    1. Click Yes to open the following document locks monitor:

      This dialog can also be opened by selecting File > Utilities > Monitor Document Locks from the main EBMS menu.

    2. Click NO to have a message appear within EBMS when the document lock is released.   Verify that the Refresh search lists every ___ minutes is enabled within Getting Started > System Options.  

  3. The list will highlight the document lock along with the EBMS User, Computer Name, and Document.  Enter the Refresh Interval __ seconds to refresh the lists on a regular interval.  Click Apply Refresh to refresh manually.  

  4. The user will be prompted when the document lock clears and give the user the option to open.  The user can select a document lock and click Clear to remove the lock warning.  Clearing the lock will allows others to edit the document increasing the likelihood of edit conflicts.   The main reason to use this option is if a user has a document open with a pessimistic for an extended period.  Users should close EBMS when leaving their desk to remove account and document locks.

    Clearing locks is a better option than selecting Edit Anyway from the lock message.
    The Clear All option should be used sparingly.  

Review Technical > User and Other Monitoring Tools for more information on monitoring document locks.