REPORT.RUNMODAL without filters from ZUP
Nils_van_Keulen
Member Posts: 6
Is it possible to run a report with RUNMODAL, without the Request Form and without passing a record variable, making sure no filters whatsoever are set. If the user has run the report manually and has set filters, the RUNMODAL will use those filters because they are saved in the ZUP.
Setting SaveTableView of the OptionsRequestForm to No, has no effect.
The only solution I can think of is to clear all filters in the OnPreReport when the OptionRequestForm is not shown.
Does anyone know another way?
Setting SaveTableView of the OptionsRequestForm to No, has no effect.
The only solution I can think of is to clear all filters in the OnPreReport when the OptionRequestForm is not shown.
Does anyone know another way?
0
Comments
-
report.settableview(myrecord);
Myrecord will not have any filters.
So the report will not have any filters.0 -
Thanks for your answer, but I cannot use your solution. I should have said that these reports are run automatically every night in a scheduler. This means that the report is always called with a RUNMODAL(REPORT::<ReportId>,FALSE). I could create a codeunit with a variable refering to the report and use the SETTABLEVIEW as you say for every DataItem in the report, but this kills all flexibility of the Scheduler and development.
I just want to make sure that none of the DataItems have filters set on them using the REPORT.RUNMODAL(REPORT::<ReportID>) function.0 -
Delete the zup file?0
-
Your remark, about deleting the ZUP, made me realize that the solution is to make sure the Scheduler runs on it's own client (Creating it's own ZUP), which no other "normal" user may use. This way no user filters can be set and everything runs fine... Thanks!0
-
Every user has it's own zup file. I didn't know that you are sharing zup files. But you are welcome.
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
