Hi there,
I have a problem wit the MARKEDONLY function:
On a form I mark some of the lines. Then I have a button on this form which runs a report.
On this report I have MARKEDONLY(TRUE); in the OnPreDataItem Trigger. But there is no output.
Does this mark only stay in as long as I am in that form? Or what did I wrong.
Regards
0
Comments
If you use somthing like this
It should work
Basically you need to set the filter before running the report. The report should not have on perdataitem filter
here is an example of running the item list report from item list form
Rec.MARKEDONLY(true);
report.runmodal(10143,true,false,rec);
Rec.CLEARMARKS;
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I used report.RUN(...) and there it didn't.
What is the difference between RUNMODAL und RUN?
Regards
Modal means the rest of the code will wait for the report to finish.
It should work with both run and runmodal, the trick is to add the MARKEDONLY to the parameter of the report. (or SETSELECTIONFILTER)