Application Object Lock in R2

As my role is not so much focused on programming anymore I hadn’t been in the position to really experience the new “developer updates” of R2 so far. Gladly I accepted the invitation to present some of these updates during our 2nd DDC event. Presenting matters to an audience that is as much (or even more) enthusiastic and eager as yourself always delivers something in return, likewise questions raised and additions made. And not in the least also the things I encounter during preparing the whole thing (see for example Modified Flag in R2 – Another Anomaly?)

Let me pick out the Application Object Lock part of my presentation. Typically a development feature wanted for ages. I guess all of us have been working in a multi-developer team on a single database and learned the hard way what this means in NAV. And finally it’s there. Nothing high-tech, but simple to use. Should I say intuitive? Maybe, maybe not, as there are some details you have to inform yourself about. Nothing spectacular, but good to know anyway.

As the setup of the presentation was one to show the general concepts of the various developer updates” of R2 I hadn’t dug into a couple of details. And that’s were questions raised and additions made came in handy.

Intuitive (Maybe)

  1. 2 columns showing me whether a objects has been locked and by whom
  2. A contextual menu providing me the action Lock, Unlock and Force Unlock


Less Intuitive (Maybe not)

  1. Option Auto-Lock on Design (from standard NAV settings intuitive, but typically something to overlook)
  2. Force Unlock – can any developer use that? No, it’s only for those developers that have SUPER role (in NAV)
    There seems to be no separate PErmission Object defined for this feature. I wonder if that suffices.
  3. Unlock – there is no automatic unlock when closing/saving the object
    although you might expect this, on second thought it makes sense that you consciously have to unlock the object

And be ware: if you turn on Auto-Lock on Design and use the Go To Definition, guess what happens? You can read it all here.

You know …

… when I sat down to write this post now I consulted the Microsoft Dynamics NAV 2009 Developer and IT Pro Documentation and found that all details can be found there. [8-|]

Leave a Reply

Your email address will not be published. Required fields are marked *