How to display the corresponding No and Type in report ?

chandrurecchandrurec Member Posts: 560
edited 2010-03-16 in NAV Three Tier
Hi all,

When I am running the report from sales order 1001, i should get the fields no as 1001 ans document type as Order automiatically when i run the report from corresponding Page/Form.

For this i have given the coding as follows

CurrPage.SETSELECTIONFILTER(SalesHeader);
REPORT.RUNMODAL(50006,TRUE,FALSE,SalesHeader);

when I run the report from form, the values for no and documenttype are getting populated when i run the report from the form whereas when i run the report from page, the values of no and document type are not getting populated when i rin the report from the page.

If anybody know the coding to achieve this , Kindly paste the coding to achieve this.

Thanks in advance.

Regards,
chandru.

Comments

  • matttraxmatttrax Member Posts: 2,309
    You should retrieve the record from the database, using a GET or FIND (I usually do a TempRec.GET(rec primary key fields).

    Then run the report using that TempRec variable.
  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'NAV/Navision' forum to 'NAV 2009' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.