setting a filter on a report which the user cannot change

Rule
Member Posts: 34
I want to set a filter on a report which the user cannot change.
But he must maintain the possibility to set his own filter (beside the one i've set) in the request Form. So setting a filter and not showing the request form is not an option.
But he must maintain the possibility to set his own filter (beside the one i've set) in the request Form. So setting a filter and not showing the request form is not an option.
Realisations are only limited by the borders of imagination
0
Comments
-
See Function FILTERGROUP in the C/Side Online Help.
With this fct used in trigger OnPreDataItem , you can create "invisible and unmovable" filters ...
Hope that help !!0 -
Antoher solution is to set a tablefilter in the DataItemTableView property on one or more DataItems in the report.0
-
Depending on the FILTERGROUP that you use in code, that is the same thing. I think FILTERGROUP(1) is the one that is used by DataItemTableView, so you can change the value of the DataItemTableView in code by changing the filtergroup. This is in the help files though.0
-
Apparently i've used the wrong trigger to set the Filter.
I used the PreReport Trigger so the filter wasn't used.
With the filter set on the predataitem trigger it works just fine.
Even without setting the filtergroup. The user cannot interact to disable or change the filter on the predataitem trigger.
Thanks for the helpRealisations are only limited by the borders of imagination0 -
You should know though that you can set two filters on the same field when you use two filtergroups.
In your solution, the filter is replaced with whatever the user sets on that field. If you use the filtergroup, you can limit the recordset that the user sees, but the user is still able to further filter on that field. Both filters will be applied.0 -
You have a point there.
This is necessary if you use the report for showing data.
I use the report only for processing. So there is no interaction except the request form. If i use the filtergroup and there is a wrong combination of filters (because of the user input) there is no data filtered. But if i replace the user filter by my filter i know the data is always filtered my way.Realisations are only limited by the borders of imagination0 -
Well it could also be necessary on a processing only report, but I'm glad you made it work for you.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