If Yes then how to do this, as i have seen all these reports are being manages by REPORT SELECTION table and there Purchase Order Report is named P.Order
That is ok, I am asking about how to link these two reports with the same po screen as i have used po screen for two different purpose and want to use two different reports for these two po screen.
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
http://www.BiloBeauty.com
http://www.autismspeaks.org
If Yes then how to do this, as i have seen all these reports are being manages by REPORT SELECTION table and there Purchase Order Report is named P.Order
then how will attach another report.
That is ok, I am asking about how to link these two reports with the same po screen as i have used po screen for two different purpose and want to use two different reports for these two po screen.
In this case you would probably want to bypass the report selection - i.e. the DocPrint.PrintPurchHeader(Rec); call.
Write come code like
IF <My Selection Criteria> THEN
report.runmodal( Report::"PO Layout 1" )
ELSE
report.runmodal( Report::"PO Layout 2" ); // Lookup the RUNMODAL command
If you want to stick with the report selection then you will need to change codeunit 229 Document-Print
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html