A page object is the user interface for your users in Dynamics 365 Business Central. You can define a page object in AL using the tpage snippet:
The first three options allow you to create the following page types:
- Card page
- API page
- List page
A Card page (the first option) is defined as follows:
page Id MyPage{ PageType = Card; ApplicationArea = All; UsageCategory = Administration; SourceTable = TableName; layout { area(Content) { group(GroupName) { field(Name; NameSource) { ApplicationArea = All; } } } } actions { area(Processing) { action(ActionName) { ApplicationArea = All; trigger OnAction() begin end;