Nav R2 - Prevent user from adding new filters
paramb
Member Posts: 85
Hi All,
The Nav feature to let the user add filter on any database field in the pages and reports are very helpful. But in certain cases, like some reports I have a requirement not to let the user add any more filters than 2-3 fields which makes sense per the requirement.
My question: Is there anyway we can restrict the users from adding filters.
Looking ahead for replies. Thanks in advance for your help.
The Nav feature to let the user add filter on any database field in the pages and reports are very helpful. But in certain cases, like some reports I have a requirement not to let the user add any more filters than 2-3 fields which makes sense per the requirement.
My question: Is there anyway we can restrict the users from adding filters.
Looking ahead for replies. Thanks in advance for your help.
0
Comments
-
If you want them to only be able to filter on a couple fields, you'd need to add custom logic to the report to check filters and error out if they've filtered on fields that they should not. You can use a FieldRef variable to cycle through all fields in the table and check GETFILTERS to see if each field has been filtered...then error out if they've done something they should not.Rob Hansen
http://www.epimatic.com0 -
How to use a FieldRef variable to cycle through all fields. I have created RecordRef using the current record. I have also figured how to create a FieldRef by passing the FiledNo as parameter.But how to make the FieldNo dynamic so that I can loop through all the fields in the table.
Any help is really appreciated.0 -
Hi,
in NAV there is a virtual table called Field so you can add it as variable, apply filter on TableNo and loop through fields to get FieldRef for each and check.
More information here
Igor0 -
Thanks.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