Table field must define a ToolTip (AC0028)
It is better to apply the ToolTip property on the table field instead of the page field. When a page field has a ToolTip but the underlying table field does not, the ToolTip is duplicated across every page that uses the field, leading to maintenance overhead and inconsistency.
Defining the ToolTip on the table field ensures that all pages using the field automatically inherit the same ToolTip, promoting consistency and reducing duplication.
Example
The following page field has a ToolTip, but the table field does not:
table 50100 MyTable
{
fields
{
field(1; MyField; Integer) { }
}
}
page 50100 MyPage
{
SourceTable = MyTable;
layout
{
area(Content)
{
field(MyField; Rec.MyField) // A value for the ToolTip property is missing for the table field 'MyField' of page field 'MyField'. Consider adding a ToolTip for table field 'MyField' and/or removing the ToolTip from page field 'MyField'. [AC0028]
{
ToolTip = 'Specifies the value.';
}
}
}
}
To fix this, move the ToolTip to the table field:
table 50100 MyTable
{
fields
{
field(1; MyField; Integer)
{
ToolTip = 'Specifies the value.';
}
}
}
page 50100 MyPage
{
SourceTable = MyTable;
layout
{
area(Content)
{
field(MyField; Rec.MyField) { }
}
}
}
See also
- AC0029 - Duplicate ToolTip between page and table field