Hi All,
I have created an action on Posted sales invoice to print a different format than than default and its working as below:
action("Print Packing Slip")
{
Promoted = true;
PromotedCategory = Process;
Caption = 'Print Packing Slip';
Ellipsis = true;
Image = Print;
PromotedIsBig = true;
ApplicationArea = All;
ToolTip = 'Print Packing Slip Based On Invoice';
//Visible = NOT IsOfficeAddin;
trigger OnAction()
var
SalesRec: Record "Sales Invoice Header";
Myreport: Report MyPostedInvPackingSlip;
begin
;
Clear(SalesRec);
SalesRec := rec;
SalesRec.SetRecFilter;
Myreport.SetTableView(SalesRec);
Myreport.RunModal();
end;
}
Now I want to do the same from posted invoice list page. Not sure ho to select a record and change print layout on a list page
thanks