Skip to content

LC0013 for Primary Key of Setup table #1005

Open
@ralf-escher

Description

@ralf-escher

I have created a classic setup table with an (empty) primary key.
On the setup page, a record with an empty primary key is created in the OnOpenPage trigger if none exists.
However, the LinterCop rule LC0013 demands NotBlank = true for this field.

How should this be correctly implemented?

Example from the General Ledger Setup page:

    trigger OnOpenPage()
    begin
        Rec.Reset();
        if not Rec.Get() then begin
            Rec.Init();
            Rec.Insert();
        end;
        ...
    end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions