0001

Show the Customer Custom Field on the Card

Basics
Easy
page-extension
field

Show the Customer Custom Field on the Card

Building on the table extension from basics-add-table-field, show "Custom Field" on the Customer Card page.

Requirements

  1. Create a page extension that extends the "Customer Card" page.
  2. Add a field control named "Custom Field", bound to Rec."Custom Field", with ApplicationArea = All.
  3. Anchor it after the Name control (any valid anchor is graded the same — this one keeps the layout sensible).

The starter already includes the table extension from basics-add-table-field — keep that file in your submission. The platform does not carry objects over between tasks, so without it Rec."Custom Field" does not exist and your submission won't compile.

What the tests check

The grading tests read the Customer Card's control list from the "Page Control Field" virtual table and require a field control bound to Rec."Custom Field" whose control name is exactly "Custom Field" (a missing control fails with a message saying so). They also store a value in "Custom Field" on a customer, open that customer on the Customer Card, and read the value back.

Learn More

Hint 1
pageextension <id> <Name> extends "Customer Card" is the shell you need.
Hint 2
Use addafter(<existing control>) to anchor the new control.
Hint 3
ApplicationArea = All; is required for the control to be visible.
Hint 4
The field only exists because of the table extension file included in the starter — keep it in your submission alongside the page extension.
ALBusiness Central 28.4
Press Compile to check your code compiles — Submit runs the tests.