How to: Lock an Object
You can lock objects so that other developers cannot save changes to the objects. You can either lock objects manually, or you can set an option so that all objects that you open for design are locked.
To manually lock an object
In the Microsoft Dynamics NAV Development Environment, on the Tools menu, choose Object Designer.
In Object Designer, select one or more objects that are not already locked, and then do one of the following steps:
Right-click the object or objects, and then choose Lock.
On the File menu, choose Lock.
To automatically lock all objects that you open for design
In the development environment, on the Tools menu, choose Options.
In the Options window, in the Auto-Lock on Design field, enter Yes, and then choose OK.
You cannot automatically unlock objects that you have locked. However, you can filter for locked objects, select all objects that you have locked, and then unlock these objects. For more information, see How to: Unlock an Object.
If you go to the definition of an object, then the object is opened in design mode. Therefore, if you set the Auto-Lock on Design field and then go to the definition of an object, then the object is locked. For more information, see Viewing the Definition of a Function or Object by Using Go To Definition.