cancel
Showing results for 
Search instead for 
Did you mean: 

Exercise - Create a page extension

Exercise - Create a page extension

Simon wants to input social media information by using the customer card. Then, Simon wants to create a page extension that will extend the customer card and save it.

Tasks

  • Use snippets to create a page extension.

  • Add extra fields to an existing Card page.

Steps

  1. Select File > New File and save the file by selecting File > Save. Name the file SocialMediaCard.PageExt.al.

  2. Create a new page extension in the file by using code snippets. Enter tpageext and press the Tab key.

  3. Change the ID to 50110 and the Name to CRONUS Social Media Card.

  4. Make sure that the page extension extends the Customer Card page.

  5. Remove the Action section and the variable myInt.

  6. Add fields to a new group called Social Media. Add this group after the General group.

  7. Use the addafter(General) keyword.

  8. Define a group as Social Media in the addafter section.

  9. Set the Caption property to Social Media.

  10. Add the following fields to the Social Media group: