How to clear previous filter on request form of Report

gison
Member Posts: 128
Dears,
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?

thank you for your help.
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?

thank you for your help.
0
Comments
-
-
Check the properties, there is SaveValues property, set it to NO0
-
Actually, i cannot find the control point from the report properties.
thank you0 -
-
call the report from a codeunit and pass a record without any filters.
report.SETTABLEVIEW(recordwithout anyfilter); report.runmodal;
0 -
ara3n wrote:call the report from a codeunit and pass a record without any filters.
report.SETTABLEVIEW(recordwithout anyfilter); report.runmodal;
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);0 -
Same problem here !
I would like to clear previous filter without other report or any other thing !0 -
I just had the same problem.
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.0 -
how about clear filter for the page???
CurrPage.SETSELECTIONFILTER(Rec); REPORT.RUN(50000,TRUE, FALSE,Rec);
what should i add to clear the filter, after i pull the report?0 -
Use a variable of the same type as Rec and use that in your SETSELECTIONFILTER and REPORT.RUN instead of Rec.Best regards
Tommy0 -
aejlskov wrote:I just had the same problem.
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.
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions