You are on page 1of 7

How to create Page

This explains how to create new Page in Visual Studio Code.


Open the Visual Studio Code

1. Press “Ctrl+Shift+P” to get the Commands


2. From the Commands select “AL: Go!” to create a new folder

3. Type the folder name at the end of your file path and then press Enter
4. You will get your the folder in Explorer
5. Enter your server name in launch.json file

6. Click on the “Ctrl+Shift+P” to get the commands


7. From the commands select the “AL: Download symbols” to download symbols.
Symbols which contain all the default object in Business Central (such as Tables,
Pages, Codeunits, Reports, Queries, XMLPorts, and Menusuits)
8. Enter your Username and then press enter

9. Enter your password and then press enter

10.Once it is downloaded successfully, you will get the following message in your
output screen
11.Create a new file inside the folder with .al extension

12.Type “tp” to get the Snippet commands of page.

13.From that command select the “tpage” to get the Snippet of page.


14.This is the snippet for Page.

15.To create page, First you need to create Page ID and Page Name


16.Define Source Table Then create field inside the fields command
17.To create field you have to give Layout, Group and Name and NameSource for
each field
18.Inside Page you can define actions In the following way

19.Inside field you can define properties

20.By following this procedure you can create as many fields and actions as you want
in a page
21.To build the extension press “Ctrl+Shift+B”
22.Once the Build process is completed successfully you will get Success message in
your output screen
23.Page is created successfully.

You might also like