Filter multiple dataitem using REPORT.RUN or RUNMODAL
Alex_Chow
Member Posts: 5,063
I know I asked this question, but for the life of me cannot seem to find it anymore on this forum... 
Is there a way to default filters on 2 different dataitems on a report when using REPORT.RUN or REPORT.RUNMODAL?
Is there a way to default filters on 2 different dataitems on a report when using REPORT.RUN or REPORT.RUNMODAL?
Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
0
Comments
-
Hi,
This example works for a report that I did, the report consists of 4 dataitems that are the same but I think the principle should still work for your problem.
CarryOutAuthorisationAction.SETTABLEVIEW(Rec);
CarryOutAuthorisationAction.SETTABLEVIEW(Rec);
CarryOutAuthorisationAction.SETTABLEVIEW(Rec);
CarryOutAuthorisationAction.SETTABLEVIEW(Rec);
CarryOutAuthorisationAction.RUNMODAL;
Each time you make the settableview call it applies it to the next dataitem in the report.
It works for me but i've never used it on a report with different dataitems.
Regards,
Remco0 -
Better send the parameters from object to object through a singleinstance codeunit.Waldo wrote:OnPreDataItem you should be able to add/specify filters on that dataitem...
If you want to pass filters "dynamically", I think you should be using a buffer table with SessionID.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:
Better send the parameters from object to object through a singleinstance codeunit.Waldo wrote:OnPreDataItem you should be able to add/specify filters on that dataitem...
If you want to pass filters "dynamically", I think you should be using a buffer table with SessionID.
Hm, didn't think of that, but indeed, that's a better idea ... no waste of tables
0 -
Nor losing performance because you write to the DB....Waldo wrote:kriki wrote:
Better send the parameters from object to object through a singleinstance codeunit.Waldo wrote:OnPreDataItem you should be able to add/specify filters on that dataitem...
If you want to pass filters "dynamically", I think you should be using a buffer table with SessionID.
Hm, didn't think of that, but indeed, that's a better idea ... no waste of tables
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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
