Hi guys,
I have designed a report with sales header and sales line and its working good.
Now i have created a page action in sales order page and now whenever i click on the page actioin the report of the particular customer must alone print.
I Tried to pass the value but its not working, Its pass null value , i found this out by using message function.
Please advice.
Warm Regards,
Bharath k
0
Answers
Currpage.SetselectionFilter(Rec);
REPORT.RUNMODAL(Repor ID,TRUE,TRUE,Rec)
As your Report is based on Sales Header and Sales Line hence you Report will get executed for this Order No.
Let me known if i understood something Wrong.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
I wrote something like this in the acction
MESSAGE(SONumberLocal);
IF SONumberLocal <> '' THEN
"Sales Header".SETRANGE("No.",SONumberLocal);
Thank you in advance
Either direct Print OR Report Preview
Simply copy this code and paste on the OnAction button of the Page
Currpage.SetselectionFilter(Rec);
REPORT.RUNMODAL(Repor ID,TRUE,TRUE,Rec)//Replace Report ID with the Report Number like 50012
Press the button and then see whats happening.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/