can we link two purchase reports with the same form

Markandey_PandeyMarkandey_Pandey Member Posts: 178
Hi experts,

as per our client requirement they require two po reports of different formats, so can we have two po reports
Markandey Pandey

Comments

  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV Exams & Certification' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Markandey_PandeyMarkandey_Pandey Member Posts: 178
    Savatage wrote:
    yes


    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.
    Markandey Pandey
  • hunnysingh_mpshunnysingh_mps Member Posts: 12
    Yes you can create two reports in differnr format
  • Markandey_PandeyMarkandey_Pandey Member Posts: 178
    Yes you can create two reports in differnr format


    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.
    Markandey Pandey
  • DaveTDaveT Member Posts: 1,039
    Hi,

    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
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • Markandey_PandeyMarkandey_Pandey Member Posts: 178
    Thanx 4 the support, the problem is resolved.
    Markandey Pandey
Sign In or Register to comment.