Pages definition

To handle the Customer Category records (insert, modify, delete, and select), we need to have a list page and a card page.

By using the tpage snippet, we have defined a card page (PageType = Card) and a list page (PageType = List).

The list page (Customer Category List_PKT) has an action for creating a default Customer Category record (it calls a method defined in an external codeunit because we don't want business logic on pages).

The code for the list page definition is as follows:

page 50100 "Customer Category List_PKT"{ PageType = List; SourceTable = "Customer Category_PKT"; UsageCategory = Lists; ApplicationArea = All; CardPageId = CustomerCategoryCard_PKT; Caption = 'Customer Category List';  AdditionalSearchTerms ...

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.