Creating the pages for the new tables

After the creation of these two new tables, we need to create the pages for the user interface in order to access those tables (and set them as LookupPageID and DrillDownPageId for the tables, as previously described).

To create a new List page for the Customer Category table, we select the Src\CustomerCategory\page folder and add a file called Pag50100.CustomerCategoryList.al. In this file, we can use the tpage snippet, and we select the second one proposed (Page of type list):

We define the Customer Category List page as follows:

Here:

  • PageType is set as List.
  • SourceTable is set to the table bound ...

Get Dynamics 365 Business Central Development Quick Start Guide 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.