Now it is my turn to ask a question to all the NAV experts here...
What is the preferred mechanism in NAV to limit a table to have only one record?
I can of course create a field, which always is 0 and set this to be the primary key - but is the best way?
Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddykThe information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The default would be 0 = unlimited and users can set it to 1.
through code you could add OnInsert trigger.
If not ISEMPTY then
Error('You cannot insert more than 1 record into the table');
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n