How to lock a record while it is opened by a user ?

Aure69Aure69 Member Posts: 30
edited 2007-03-15 in Navision Financials
Hi,

We work on a 2.60 Finanancials version w/ a SQL db. We would like to lock the records for all the headers of every purchase/sales documents. ie when a user is working on an quote/order/invoice... no one can et access to it while the record is opened. Do you see any way to do this ?

Thanx in advance for yr help.
Business Analyst
Incadea (Vertical solution for the automotive market based on Nav 2.60)
French speaking European/African/Indian Ocean countries.

Comments

  • ara3nara3n Member Posts: 9,256
    I wouldn't use locking to give this feature to the client.

    Issueing a lock, doesn't lock sql record, but rather sql makes the transaction serializable. So SQL will make the decision when to lock the record, or a page or the whole table.



    Anyways I would rather create a new field called "Is being Modiied by", fill it in by the userID and do not allow anybody to modify the record, once the order is release, remove the field.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.