I got a problem on the Report.
Once user executed the report, system will remember the filter user gave.
Does there have any way to clean this filter or make system not keep this filter?
Since we run the report by different way, and this report have more than one DataItem (ex: Sales Header, Purchase header, Sales Invoice...), so it's possible have filter on other DataItem.
A report with 2 dataItems, where the user can set filters on both dataitems. When running the report. NAV will remeber the filters set on both dataitems, the next time the user want's to print the report.
where MyRecord1 and MyRecord 2 are variables of datatype Record equal to the dataitems used in the report
and MyReport is a variable of datatype Report.
A report with 2 dataItems, where the user can set filters on both dataitems. When running the report. NAV will remeber the filters set on both dataitems, the next time the user want's to print the report.
where MyRecord1 and MyRecord 2 are variables of datatype Record equal to the dataitems used in the report
and MyReport is a variable of datatype Report.
Thanks a lot!
How can we make difference between several dataitems to the same record?
It is hard to swim against self bloodstream... (c) Old, experienced kamikadze.
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
thank you
it's on the request form property, not the field property in the request form. Just click on the request form and search.
Thanks
yes, you are right, the problem is on Dataitem filter.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Since we run the report by different way, and this report have more than one DataItem (ex: Sales Header, Purchase header, Sales Invoice...), so it's possible have filter on other DataItem.
REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesInvHeader);
I would like to clear previous filter without other report or any other thing !
A report with 2 dataItems, where the user can set filters on both dataitems. When running the report. NAV will remeber the filters set on both dataitems, the next time the user want's to print the report.
When running your report, instead of using:
Report.RUN(REPORT::MyReport,TRUE,FALSE,MyRecord1)
Use this:
MyRecord1.RESET;
MyRecord2.RESET;
MyReport.SETTABLEVIEW(MyRecord1);
MyReport.SETTABLEVIEW(MyRecord2);
MyReport.RUN.
where MyRecord1 and MyRecord 2 are variables of datatype Record equal to the dataitems used in the report
and MyReport is a variable of datatype Report.
what should i add to clear the filter, after i pull the report?
Tommy
Thanks a lot!
How can we make difference between several dataitems to the same record?