Creating a Generic Dynamics NAV Lookup Table to Encourage Good Behavior

by | Updated August 15, 2016 | Dynamics NAV

During initial design on a Dynamics NAV project, it is easy to make a decision between employing an Option field or a Code field validated by a dedicated table. We buy what tables we need and off to the races we go.

As a project matures and the table spread of middle age occurs it is not uncommon to deal with a support request that really calls for a validated field, but there aren’t any tables left in the license at that point and time is of the essence. This is when design crimes are committed with the best of intentions and fields may be made with long option strings or for options that are not as static as we would like to think.

Dynamics NAV Lookup Table Solution:

To avoid this situation, we may add a generic lookup table to our projects. In this way, the first table we ever use is always there to make a good choice at a later point in the project lifecycle. This is not an invitation to make a mess and end up with ridiculous quantities of data in a table. When a validation table needs more than Code and Description fields it probably does need a dedicated table. The other vital requirement is that the use of a generic lookup table is transparent to users.

Dynamics NAV Lookup Table Implementation:

Our generic table contains three fields:

  • The Code and Description fields are like those in any lookup table
  • The “Field Name” field is used to separate the data belonging to entirely different lookups.

Dynamics NAV Table Lookup

 

Sample Lookup Data

Here we have two values for two unrelated example Lookups:

Dynamics NAV Lookup Table

 

Adding a field to a table with generic validation:

The only trick is to put a hard coded filter in place to pick out the correct values from our generic table. In this way, users will only see the relevant values and will also only add new values with the correct Field Name.

Table Filter in Dynamics NAV

 

Our new field is now ready to be placed on any page.

 

Related Posts

0 Comments

Submit a Comment

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

Upcoming Events

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

02sep12:00 pm12:30 pmBest Practices for Work Order Planning and Routing for Field Service Companies

09sep10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

09sep12:00 pm12:30 pmOverview of Microsoft Promotion for NAV and GP Clients

10sep11:00 am12:00 pmConfab with Stoneridge - Livestream - Field Service Comparisons

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

16sep12:00 pm12:30 pmHow to Upgrade to Dynamics 365 Finance and Operations: Examining Custom Code and ISV Implications

16sep2:00 pm2:30 pmScheduling and Dispatching for the Modern Field Service Company

23sep12:00 pm1:00 pmDynamics 365 Business Central Wave 2 Release Preview - An Overview of the Most Exciting New Features Coming in October

24sep11:00 am12:00 pmConfab with Stoneridge - Livestream - The Modern Workplace: Teams, Sharepoint, Outlook, Office, and AI Integration

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

30sep12:00 pm12:30 pmEmpowering Your Field Service Technicians with a Mobile Solution

october

07oct12:00 pm1:00 pmThe Three Paths to Business Central from Dynamics GP

08oct11:00 am12:00 pmConfab with Stoneridge - Livestream - The Vision and Strategy of Microsoft Business Systems

14oct10:00 am10:30 amThe Modern Manufacturer - Complex Cost Modeling

14oct12:00 pm12:30 pmGenerating Custom Inspection or Process Forms

19octAll Day22Stoneridge Connect Fall 2020

22oct11:00 am12:00 pmConfab with Stoneridge - Livestream - Stoneridge Connect Recap

28oct10:00 am10:30 amThe Modern Manufacturer - Engineering Change Orders

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X