Youtube-Video-Sources icon indicating copy to clipboard operation
Youtube-Video-Sources copied to clipboard

Missing POS Setup Table

Open acrespo123 opened this issue 3 years ago • 2 comments

Hi Hougaard,

I tried to run the code in the latest version of Business Central.

It always stop in this point image

And return this error on Business Central image

The POS Setup Table exist on code but not in BC.

thank you

acrespo123 avatar Sep 09 '21 20:09 acrespo123

There is a POS Setup page, use that.

hougaard avatar Sep 09 '21 23:09 hougaard

It is in the project, but dont work

Page 1000000 "POS Setup"
{
    Caption = 'POS Setup';
    SourceTable = "POS Setup";
    UsageCategory = Administration;
    ApplicationArea = All;

    layout
    {
        area(Content)
        {
            field("Cash Customer"; Rec."Cash Customer")
            {
                ApplicationArea = All;
                ToolTip = 'Cash Customer';
            }
        }
    }

    trigger OnOpenPage()
    begin
        if Rec.IsEmpty() then
            Rec.Insert();
    end;
}

table 1000000 "POS Setup"
{
    Caption = 'POS Setup';

    fields
    {
        field(1; POSKEY; Code[10])
        {
            DataClassification = SystemMetadata;
        }
        field(13; "Cash Customer"; Code[20])
        {
            Caption = 'Cash Customer';
            TableRelation = Customer."No.";
        }
    }
}

acrespo123 avatar Sep 10 '21 11:09 acrespo123