mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
Author 7 remedial BCQuality knowledge articles plus good/bad AL samples (21 files) covering AL master-table and data-model design: - data-modeling: master No. from number series in OnInsert; use codeunit "No. Series" not obsolete NoSeriesManagement; setup table is a singleton; set Last Date Modified in OnModify and OnRename; enforce Blocked in referencing code not in the master. - style: ApplicationArea required on page controls (AS0062). - appsource: object affixes prevent collisions (AS0011). Clean-room authored from own BC knowledge; specifics verified against public sources only (learn.microsoft.com, microsoft/BCApps). Introduces two new domains (data-modeling, appsource). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
25 lines
725 B
AL
25 lines
725 B
AL
page 50375 "Sample App Area Bad"
|
|
{
|
|
PageType = Card;
|
|
SourceTable = Customer;
|
|
layout
|
|
{
|
|
area(Content)
|
|
{
|
|
group(General)
|
|
{
|
|
// Anti-pattern: no ApplicationArea. AS0062 flags this control,
|
|
// and it is silently hidden in the Web client for profiles whose
|
|
// enabled areas do not already cover it.
|
|
field("No."; Rec."No.")
|
|
{
|
|
ToolTip = 'Specifies the number that identifies the customer.';
|
|
}
|
|
field(Name; Rec.Name)
|
|
{
|
|
ToolTip = 'Specifies the customer''s name.';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|