DropDown and Brick fieldgroups must be defined (AC0013)
Table objects must explicitly define both the DropDown and Brick fieldgroups. These fieldgroups control how records are displayed in dropdown lists and tile views throughout the Business Central client.
The DropDown fieldgroup determines which fields are shown when users select records from a lookup, while the Brick fieldgroup defines the tile representation used in certain UI contexts.
Note: This rule is disabled by default. Enable it in your project’s .editorconfig or ruleset file if you want to enforce fieldgroup definitions.
Example
The following table is missing the required fieldgroups:
table 50100 MyTable // Table 'MyTable' is missing the required 'DropDown' fieldgroup. [AC0013]
{
fields
{
field(1; "No."; Code[20]) { }
field(2; Description; Text[100]) { }
}
}
To fix this, define both fieldgroups:
table 50100 MyTable
{
fields
{
field(1; "No."; Code[20]) { }
field(2; Description; Text[100]) { }
}
fieldgroups
{
fieldgroup(DropDown; "No.", Description) { }
fieldgroup(Brick; "No.", Description) { }
}
}