Page object definition

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;

Get Mastering Microsoft Dynamics 365 Business Central now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.