table 50364 "Loyalty Setup" { Caption = 'Loyalty Setup'; DataClassification = CustomerContent; fields { field(1; "Primary Key"; Code[10]) { Caption = 'Primary Key'; } field(10; "Member Nos."; Code[20]) { Caption = 'Member Nos.'; TableRelation = "No. Series"; } } keys { key(PK; "Primary Key") { Clustered = true; } } procedure GetRecordOnce() begin if Rec.Get() then exit; Rec.Init(); Rec.Insert(); end; } page 50365 "Loyalty Setup" { Caption = 'Loyalty Setup'; PageType = Card; SourceTable = "Loyalty Setup"; UsageCategory = Administration; ApplicationArea = All; InsertAllowed = false; DeleteAllowed = false; layout { area(Content) { group(Numbering) { Caption = 'Numbering'; field("Member Nos."; Rec."Member Nos.") { ApplicationArea = All; ToolTip = 'Specifies the number series used to assign member numbers.'; } } } } trigger OnOpenPage() begin Rec.Reset(); if not Rec.Get() then begin Rec.Init(); Rec.Insert(); end; end; }