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    ---------------------------

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.

NAV 2013 Upgrade Part III - Data Upgrading.

Hi all, As per agenda we need to discuss the data upgrade in NAV 2013. The process is similar to what used to be till NAV 2009 R2 but with some changes. Let's start the process. Remember -  1) You can only upgrade a database to NAV 2013 from NAV 2009 SP1 / R2 SQL Only. 2) The Synchronization of users with SQL Server is no more required.