calling a Classic report from a page subform

steven77steven77 Member Posts: 16
edited 2011-11-27 in NAV Three Tier
Good afternoon
I've this problem:
I deplove a report that print labels with barcodes, so users can run this report manualy (must set some values ) or from the page 12153 Subcontracting Order Subform, so in the report i did a function Setvalues(RecPurchaseLine) that assign automaticaly the values form Purchase Line table,
I create a page action for this, and then call a function that execute this code:
MyReport.SetValues(Rec);
MyReport.RUNMODAL;

look RTC client error in attached file.

seems that with RTC i can't call a function in a report before i have not run the report, so how i can solve my problem?
I've tried also do put another dataitem in report "Purchase Line"
And from the function in the page write code below:

RecPurchLine.SETRANGE("Document Type", "Document Type");
RecPurchLine.SETRANGE("Document No.", "Document No.");
RecPurchLine.SETRANGE("Line No.", "Line No.");
MyReport.SETTABLEVIEW(RecPurchLine);
MyReport.RUNMODAL;

It not work no filters are applied to MyReport

Help me please!!! ](*,) ](*,) ](*,) ](*,) ](*,)

Comments

Sign In or Register to comment.