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 -
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
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
Good Job.
ReplyDeleteGreat to hear that you find the information useful.
DeleteVery Good Learning Procedure.
ReplyDeleteGreat to hear that you find the information useful.
Delete