Hello every one,
i create a new report with new data set for SalesInvoice i need to create button in "posted sales invoice form" and pass the selected record value to the report to print
Hello every one,
i create a new report with new data set for SalesInvoice i need to create button in "posted sales invoice form" and pass the selected record value to the report to print
The problem Solved using This cod in OnAction()
trigger OnAction();
var
SalesRec: Record "Sales Invoice Header";
Myreport: Report modSalesInvoiceReport;
begin
;
Clear(SalesRec);
SalesRec := rec;
SalesRec.SetRecFilter;
Myreport.SetTableView(SalesRec);
Myreport.RunModal();
end;
Hi Divyesh Chitte ,
I try take object from salesinvoiceHeader as you do above but i can,t
Try Adding this code on Action.
SalesHeader := Rec;
SalesHeader.SetRecFilter;
REPORT.RunModal(REPORT::"New Report", true, false, SalesHeader);
I will suggest to Change the Report id in Report Selection Sales
Search for Report Selection Sales In that select Invoice and Add new report id so it will automatically print your new Report from the existing print Button
Yes you need to create a new report (start by copying the existing one) and then use this new report.
Hello, how you create new data set for saleinvoice. I also need to add new fields in sale invoice. Need to create new report from scratch as we cannot extend report.
Just create a pageextension of your standard page (posted sales invoice), add a new action and from this action you can call your new report (report.run(XXXXX, Rec)).
YUN ZHU
628
Super User 2025 Season 1
Mansi Soni
495
Sagar Dangar, MCP
395