protected procedure OpenSpecOrderSalesOrderForm() var SalesHeader: Record "Sales Header"; SalesOrder: Page "Sales Order"; IsHandled: Boolean; begin IsHandled := false; OnBeforeOpenSpecOrderSalesOrderForm(Rec, SalesHeader, SalesOrder, IsHandled); if IsHandled then exit; TestField("Special Order Sales No."); SalesHeader.SetRange("No.", "Special Order Sales No."); SalesOrder.SetTableView(SalesHeader); SalesOrder.Editable := false; SalesOrder.Run; end;
Answers