pageextension 50101 SOStatus extends "sales order" { layout { addlast(General) { group("Order Status") { field(SOStatus; rec.SOStatus) { ApplicationArea = All; ToolTip = 'Sales Order Status'; Editable = true; } } } } actions { addfirst(navigation) { group(Status) { Caption = 'Status'; Image = Status; Enabled = true; action("Accept Order") { ApplicationArea = All; Promoted = true; Enabled = rec.SOStatus <> Rec.SOStatus::Accepted; PromotedCategory = Category13; PromotedIsBig = true; PromotedOnly = true; Caption = 'Accept'; Image = Approval; trigger OnAction() begin Rec.Modify(Rec.SOStatus <> Rec.SOStatus::Accepted) end; } action("Reject Order") { ApplicationArea = All; Promoted = true; Enabled = Rec.SOStatus <> Rec.SOStatus::Rejected; PromotedCategory = Category13; PromotedIsBig = true; PromotedOnly = true; Caption = 'Reject'; Image = Reject; trigger OnAction() begin Rec.Modify(Rec.SOStatus <> Rec.SOStatus::Rejected) end; } } } } }