Passing Values from Form to the Report

udaya726udaya726 Member Posts: 21
I have created a report using Sales Header table and Item Ledger Entry Table. When I run the report I need to pass the values to the both records. though I am passing values for the both It takes only the first value that I pass

Pls give me a solution.

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi,

    Declare the report as a variable and use the SETTABLEVIEW command for each dataitem
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • BeliasBelias Member Posts: 2,998
    DaveT wrote:
    Hi,

    Declare the report as a variable and use the SETTABLEVIEW command for each dataitem
    are you sure?how do you call the report?the syntax of rpt.runmodal allows only one record to be passed.
    P.S.: if never tried to put multiple SETTABLEVIEW, so, maybe you're right
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • DaveTDaveT Member Posts: 1,039
    Hi Belias,

    Yes, it's no problem - here a quick example for Cronus with a report using Item & Item ledger Entry


    item.SETFILTER( "No.", '1100' );
    rep.SETTABLEVIEW( item );
    ile.SETFILTER( "Posting Date", '06/09/08' );
    rep.SETTABLEVIEW( ile );
    rep.RUNMODAL;
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • BeliasBelias Member Posts: 2,998
    DaveT wrote:
    Hi Belias,

    Yes, it's no problem - here a quick example for Cronus with a report using Item & Item ledger Entry


    item.SETFILTER( "No.", '1100' );
    rep.SETTABLEVIEW( item );
    ile.SETFILTER( "Posting Date", '06/09/08' );
    rep.SETTABLEVIEW( ile );
    rep.RUNMODAL;
    #-o yes, you're right! i completely forgot the syntax of rep.RUNMODAL! :oops:
    OT: yesterday i was at a party and i got back home at 2.30 AM (half drunken), then i got up at 7.30 AM this morning, it will be an hard day...i think you can forgive me :wink:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • DaveTDaveT Member Posts: 1,039
    No problem - mind the head :mrgreen:
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • udaya726udaya726 Member Posts: 21
    Thanks Dave
    Got my work done
    :D
  • DaveTDaveT Member Posts: 1,039
    Glad to Help :mrgreen:
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
Sign In or Register to comment.