invoice no. on customize report

vyankuvyanku Member Posts: 791
When we open the test report of any invoice, the no. filter field automatically gets the current invoice no.

If we create a customize report and run it it will not get the invoice no automatically ,we have to insert it manually.

Can we insert the current invoice no. in the report automatically?

Answers

  • ssinglassingla Member Posts: 2,973
    Here is an example
    CurrForm.SETSELECTIONFILTER(SalesInvHeader)
    on the print option of Posted Sales Invoice form.
    CA Sandeep Singla
    http://ssdynamics.co.in
  • themavethemave Member Posts: 1,058
    are you an end user, if so you can not access cal/code in the form unless you have the application designer granule. you can not do it with just the standard forms designer.

    so even though you can access cal/code in reports, you can not make the form you are working with feed the no to the report.

    if you are a developers then the above example works great.
  • vyankuvyanku Member Posts: 791
    I write this code on OnPush trigger of the button. But it is not working.
  • BeliasBelias Member Posts: 2,998
    maybe you run the report with Runobject property with the button: if so the code doesn't works. The variable you use in setselectionfilter must be the same as the one you use to run the report. So, you must write in the on push:
    currform.setselectionfilter(TBSlsHead);
    REPORT.RUNMODAL(INTReportNumber,TRUE 
                                  ,FALSE,TBSlsHead);
    

    Make sure you clear the runobj property of the button. The TBslshead variable points to the same table of the current form i.e. "sales invoice header"
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • vyankuvyanku Member Posts: 791
    Thanks .
    Its Working Now. \:D/
Sign In or Register to comment.