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

BC 21 and Higher - PowerShell Cmdlet (Replacement of Business Central Administration).

Hi Readers, As discussed in last article about deprecating of Business Central Administration, there are few common actions that we use in administration till Business Central 20. For our on-prem customers, we will still require doing activities. As Microsoft suggest we need to start using PowerShell cmdlet.    Let's see how to do those via PowerShell, or Administration Shell. I will be keep adding commands as you comment to this article.

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing -