Today we will see how to create pages in AL.
Before we dive into it lets have some basic concept for Pages.
If you navigate in Navision you may be familiar with page types we have in Navision.
Types of Page
- Card Page
- List Page
- CardPart Page
- ListPart Page
- Worksheet Page
- Document Page
- RoleCenter Page
- Confirmation Dialog Page
- ListPlus Page
- StandardDialog Page
- Navigate Page
All above pages are just how we design and use them for specific purpose, I will not go in details what type of page is used for what purpose you can find them in any document or already familiar with.
When we design pages we should have idea of Page Controls
Different Page Controls you have on pages are:
- Content Area
- Factbox Area
- RoleCenter Area
All controls are placed in pages using below arrangement
|Group||Group (Fast Tabs – on Card Pages)|
|Repeater (List Pages)|
|CueGroup (Rolecenter Pages)|
|Field||Data from Table|
|Part||Display another Page, Chart, System defined features|
Lets understand from below Customer List Page
Let’s create our First Page.
To Create a Page First we will create a File .al.
In Editor we fill type snippet tpage
You will get the options available, select Page of type list, we are going to create List Page.
Basic structure of the Page is given to you as below
Lets create our LoadoutPointList Page on Table Loadout Point table created in previous post.
Similarly we will create a Appointment Calendar Setup List Page, final code as below:
Similarly you can design Card Page Also:
I am not creating Page from scratch but will show you few properties, triggers from standard Page e.g.:- Cost Type Card
PageType you need to define as Card.
For FastTab you need to define group.
Above is the example of few properties for field control on Page.
To add factboxes to the page you define area(factboxes).
Here systempart for Links & Notes is added.
Above is actions to the page. Few properties how to define.
Above is the Page triggers.
Complete code for each objects is not possible to include in post.
But I will give to some tips using which you can explore equivalent AL Code and tryout them.
Suppose you want to see any feature how implemented in Customer Card.
Export that object as text, and convert using txt2al for equivalent al code.
You can refer back to my previous post Quick Start with Extensions for Business Central
Similar method I have explained in this post.
We will explore few more possibilities and Extending to existing Table & Pages in our upcoming post.
2 thoughts on “AL Basics – Part 4 [Page]”
Comments are closed.