Duplicate ToolTip between page and table field
Properties
AC0029
Info
Design
Code Fix
Ignore Obsolete
When a table field defines a ToolTip, every page field that references it automatically inherits the text . A ToolTip set directly on the page field overrides the inherited value. When both define the same text, the page field’s copy is pure duplication.
That duplication becomes a maintenance problem when someone updates the table field’s ToolTip. Pages that rely on inheritance pick up the change immediately. The page field with its own identical copy keeps showing the stale text.
Remove the duplicate ToolTip from the page field and let it inherit from the table.
Example
The following page field repeats the same ToolTip already defined on the table field:
table 50100 "Reward Program"
{
fields
{
field(1; "Code"; Code[20])
{
ToolTip = 'Specifies the unique code for the reward program.';
}
}
}
page 50100 "Reward Program Card"
{
SourceTable = "Reward Program";
layout
{
area(Content)
{
field("Code"; Rec."Code") // Duplicate ToolTip between page and table field [AC0029]
{
ToolTip = 'Specifies the unique code for the reward program.';
}
}
}
}To fix this, remove the ToolTip from the page field:
table 50100 "Reward Program"
{
fields
{
field(1; "Code"; Code[20])
{
ToolTip = 'Specifies the unique code for the reward program.';
}
}
}
page 50100 "Reward Program Card"
{
SourceTable = "Reward Program";
layout
{
area(Content)
{
field("Code"; Rec."Code") { }
}
}
}See also
- AC0028 - Table field must define a ToolTip