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

by | Updated August 15, 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.

Related Posts

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

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