Hi all and thanks in advance for your help...
I have a problem passing parameters and datas between a form and a report...
I have inserted this code:
...
REPORT.RUN([report no.],TRUE,FALSE,Rec);
...
in the Purchase Invoice form, in the OnPush event of a Command Button trigger.
Then i've created a report that has the Purchase Header table as the DataItem. Also the SourceTable property of the Purchase Invoice form is set to Purchase Header.
My problem is that, when i call the report, the report doesn't show the Document Type and the Number values in the initial window (Request Form window, it could be...)...
My question is: what is the problem?
Why form and report don't match datas?
I hope beign clear...
Thanks a lot..
poverocane
Fantasy is more important than knowledge.
A. Einstein
0
Comments
Make a variable r_PurchHeader = purchase Header. Then make the code like this:
r_PurchHeader.copy(rec);
r_PurchHeader.setrecfilter;
REPORT.RUN(reportID,TRUE,FALSE,r_PurchHeader);
you've resolved my problem...
YOU ARE GREAT!!!!
poverocane
A. Einstein