Skip to main content

MSDYN365BC - AL Development 02 - How to Develop New Page in Database?

Hi Readers,

I am sure everyone was able to develop a table in AL based on the Last article. If you haven't read the earlier article, then refer to the table of content.

As promised in the article we will build the new page as per customer requirements.

The customer requires a new list page to add, modify & delete data stored in the database.

Let's try to add this page to our extension.

Add a new file on the Left-hand Panel - right click & select New File as shown below.

As per our standard page file name is - SDH_Page_50000_Sourceofsales.al



Snippet for adding a new page, use snippet tpage as shown below.



Next Step to set these Page Properties - 
  • Assign ID and Provide a name to the page that you are adding.
  • Set ApplicationArea to All.
  • Set UsageCategory to Lists.
  • Set Source Table to "Source of Sales".



Let's understand what properties we set in the page object - 

1. ApplicationArea - is a property that is known in NAV starting NAV 2017 but most of us may not use it. Based on Application area the user can see those in the application. Below are things that will require this property -
- Page
- Page Field
- Page Action
- Report
- Report Request Page Fields

What does ApplicationArea Property does? - Sets the application area for a searched page or report in the web client. Standard values are All, Basic, Suite, and Advanced.

2. UsageCategory - 
Option None,Lists,Tasks,ReportsAndAnalysis,Documents,History,Administration.
This property Sets the department column for a searched page or report in the web client. As there are no menusuite in web client UsageCategory used to set where these custom objects in Web Client Menu.

Click tab after tpage and snippet will generate a basic list page design for us.



List Page Design is mainly divided into two areas -

- Layout Section - Layout Section has two parts - Repeater Group list of fields and Factbox Area which have all factbox.

- Action Section - Action Section contains all actions that you would like to add in the page.

You can add other fields in the page using snippet tfield. Also to show how to add factbox I have added Link Factbox. Below is the screenshot will all changes are done in a page.



Hope you learned how to build a list page and it should be easy enough.
Let me know your views as the comment in this article. Stay tuned for more!

Regards,
Saurav Dhyani
www.sauravdhyani.com

Comments

Post a Comment

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searching for the error i figured out the issue was due to - Design change in NA

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.