LC0023 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki

Always provide fieldsgroups DropDown and Brick on tables.

It's a best practice to set these properties on a table, where this rule will help you remind of this. Without explicit defining these properties the system will use the first n fields from the table.

Example

table 27 Item
{
    keys
    {
        key(Key1; "No.")
...

    fieldgroups
    {
        fieldgroup(DropDown; "No.", Description, "Base Unit of Measure", "Unit Price")
        {
        }
        fieldgroup(Brick; "No.", Description, Inventory, "Unit Price", "Base Unit of Measure", "Description 2", Picture)
        {
        }
    }

Read more: