bcquality/microsoft/knowledge/style/tooltip-required-on-page-fields.good.al
Jesper Schulz-Wedde 11aefa9125 Address tooltip quality and knowledge scope review feedback
Require useful, behavior-grounded tooltip text rather than caption repetition, improve the samples, and explain why compiler feedback does not prevent redundant page captions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-07 15:10:15 +02:00

62 lines
1.6 KiB
AL

// BC24 / runtime 13.0 or later.
table 50250 "Sample Tooltip Source"
{
Caption = 'Tooltip Source';
DataClassification = CustomerContent;
fields
{
field(1; "No."; Code[20])
{
Caption = 'No.';
ToolTip = 'Specifies the unique number used to distinguish this entry from other entries.';
}
field(2; Amount; Decimal)
{
Caption = 'Amount';
ToolTip = 'Specifies the monetary value recorded for this entry; changing it updates the saved entry.';
}
}
keys
{
key(PK; "No.")
{
Clustered = true;
}
}
}
page 50250 "Sample Tooltip Good"
{
PageType = Card;
SourceTable = "Sample Tooltip Source";
layout
{
area(Content)
{
group(General)
{
Caption = 'General';
field("No."; Rec."No.")
{
ApplicationArea = All;
}
field(Amount; Rec.Amount)
{
ApplicationArea = All;
ToolTip = 'Specifies the recorded amount to compare with the temporary preview amount.';
}
field(PreviewAmount; PreviewAmount)
{
ApplicationArea = All;
Caption = 'Preview Amount';
ToolTip = 'Specifies a temporary amount to compare with the recorded entry amount; this value is not saved.';
}
}
}
}
var
PreviewAmount: Decimal;
}