Dynamics NAV Development for Non-Developers: Part 6 – Adding a Field to a List Page

by | Mar 25, 2016 | Dynamics NAV

For those of us familiar with the Classic Dynamics NAV environment, there may be some familiarity with WYSIWYG (what you see is what you get) design on forms – most notably on “card” forms. In those older versions of NAV, you could open a form in design mode and place new fields exactly where you wanted. The NAV client, in turn, would present the fields in the form exactly as you had added them.

Pages in the Role Tailored environment are designed a bit differently. Because NAV is no longer tied to a specific client (now desktop, web, SharePoint, mobile), the design must be client agnostic. Today, we can tell the fields in what order to be presented and can provide some grouping parameters, but the specific client renders those fields in the way most appropriate for the device and/or format. To add a field to a list page, the differences are slightly less pronounced than in the Classic NAV environment, but different nonetheless.

The previous entry in this series described the process of adding a field to a table. The field added was called “Web Site Description” and was added to the Item table. Here, we will expose our new field to the Item Card so users are able to see and edit it.

How to Add a Field to a List Page in Dynamics NAV

1) In the Development Environment (Object Designer), find and “Design” the page which requires the new field(s) [see previous blog for more information related to identifying and locating the page]. Specifically, select the ‘Design’ button at the bottom of the screen while the line representing the page is selected.

Adding a Field to a List Page

 

 

 

 

 

 

 

 

 

2) Find the position within the field order where you would like to place the new field. With your cursor on the line beneath where the new field should reside, select F3 (Edit – New from the toolbar).

NAV Development

 

 

 

 

 

 

 

3) Select the Assist-Edit button in the image above. This may be found in the SourceExpr column and is identifiable by its three dots. Upon selecting the assist-edit button, you will be presented with a symbol menu. In it, select the “Rec” line in the leftmost column. This will cause the field names for the Item record (in this case) to be presented in the rightmost column. In that column, find and select the field you wish to add.


Adding a Field to a List Page

 

 

 

 

 

 

4) Select ‘OK’ to return the field to the list page layout.


Adding a Field Name to a List Page

 

 

 

 

 

5) Close the page, currently opened in design more. You will be prompted to save the changes and compile. Select ‘Yes’.


Save Changes in Dynamics NAV

 

 

 

 

 

 

 

 

 

 

6) Review the page in the Role Tailored Client to confirm that your new field appears and behaves as you expect.


Items List Page

 

 

 

 

 

 

 

 

 

While there is less potential harm possible in modifying pages in your Production environment, it is still recommended that they are  first modified in your Test environment, reviewed, and only then copied to Production. You can again reference the third entry in this series for a deeper discussion around moving objects from Test to Production.

Of note, editing the new field would require it also be added to the Item Card page because the Item List page in NAV is non-editable. This process is very similar to adding the field into the List Page. More information about page design in Dynamics NAV, including more discussion about card pages, may be found at https://msdn.microsoft.com/en-us/library/dd338968(v=nav.80).aspx.

The next entry in this series will describe the process to add this same field to a report.

3 Comments

  1. Ronnie

    What about adding a field that is not in the REC file. For example I’m looking to add Book Value to Fixed Asset List, however, this is not a stock field in the rec lookup.

  2. Taylor Valnes

    Hello Ronnie,

    I spoke with Sean about this and he had this to reply:
    The Book Value” field actually resides on a different table than the page is exposing. The page uses table 5600 (Fixed Asset) while the field you are after is from table 5612 (FA Depreciation Book). Because there could be multiple depreciation books associated with one asset, and therefore multiple “Book Values”, NAV does not store the value on the asset record itself.

    If you are only using a company book and want to display that, you could add a record variable to page and a little code to “get” the value. It’s not a 101-type task, but is also not tremendously difficult.

    1. Add a global variable to the page

    2. Add a little code (this could be improved to get the default company book from FA Setup, but I wanted to keep this as simple as possible)

    3. Add the new field value to the list

    Regards,
    Taylor

Submit a Comment

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

Upcoming Events

april

08apr10:00 am10:30 amLicensing Preparedness for Dynamics 365 Customer Engagement

08apr12:00 pm1:00 pmMaking Project Information Management (PIM) a Priority

08apr2:00 pm2:30 pmFeatures in the Spring Release of Dynamics 365 Customer Engagement Users Can Take Advantage of Immediately

09apr11:00 am12:00 pmConfab With Stoneridge - Livestream - Portals

13apr11:30 am12:30 pmStoneridge Connect Online Keynote: Business Transformations Throughout History

14apr8:00 am5:00 pmStoneridge Connect Online - Day 1

15apr8:00 am5:00 pmStoneridge Connect Online - Day 2

15apr1:15 pm5:00 pmWhat’s New for Developers in Dynamics 365 Finance and Supply Chain Management – Online Workshop

16apr8:00 am5:00 pmStoneridge Connect Online - Day 3

22apr11:00 am12:00 pmPower BI and Reporting with Dynamics 365 Business Central

22apr2:00 pm2:30 pmNew Features for Power Apps Users

23apr11:00 am12:00 pmConfab With Stoneridge - Livestream - Internet of Things (IoT)

29apr10:00 am11:00 amStreamlining Customer Service and Enabling Your Sales Team with a Self-Service Portal

29apr12:00 pm12:30 pmUpdates to the Dynamics 365 Customer Engagement User Experience - What Technical Resources Need to Know

may

06may12:00 pm12:30 pmPower Apps Telemetry and AI Builder - Power Platform Updates

06may2:00 pm2:30 pmImprove Customer Experience with a Mobile Workforce Management Solution

07may11:00 am12:00 pmConfab With Stoneridge - Livestream - Manufacturing

13may12:00 pm1:00 pm3 Simple Sets Your Business Can Take to Embrace the Future of B2B E-Commerce

21may11:00 am12:00 pmEnterprise Asset Management and Manufacturing

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