FILTERGROUPS
Developer101
Member Posts: 576
Been with NAV for years but there are some things always need relearning.
could be would achieve
FILTERGROUP(10)
SalesHeader.SETRANGE("No.",'10000');#
FORM.RUN(0,SalesHeader)
exactly same as
FILTERGROUP(10)
SalesHeader.SETRANGE("No.",'10000');#
FILTERGROUP((0)
FORM.RUN(0,SalesHeader)
Then what is the user of FILTERGROUP(0) --- I struggle to understand..
Thanks
could be would achieve
FILTERGROUP(10)
SalesHeader.SETRANGE("No.",'10000');#
FORM.RUN(0,SalesHeader)
exactly same as
FILTERGROUP(10)
SalesHeader.SETRANGE("No.",'10000');#
FILTERGROUP((0)
FORM.RUN(0,SalesHeader)
Then what is the user of FILTERGROUP(0) --- I struggle to understand..
Thanks
United Kingdom
0
Answers
-
It is not exaclty the same.
If you omit FILTERGROUP(0) before FORM.RUN the filtergroup 10 will be your current one and user will see the filter and will be able to remove it.
The form shows the filters, and let user remove them from the current filtegroup - no matter what filtergroup number it is. Default filtergroup is 0, and it is also 'current' filtegroup on all record variables, until you swith it. When you switch it from (default) filtergroup 0 to something other (10 in your case) the new filtergroup becomes 'visible' on forms.
If you switch filtergroup to something (say 10), set filters in that filtergroup, and then switch to someting different (can be default 0, but also can be anyting else but 10), the filters in filtergroup 10 becomes hidden an non-removable from the user interface (the form), yet they still apply to your record.
You could doFILTERGROUP(0) SalesHeader.SETRANGE("No.",'10000');# FILTERGROUP(10) FORM.RUN(0,SalesHeader)and that would work exactly the same asSalesHeader.SETRANGE("No.",'10000');# FILTERGROUP(10) FORM.RUN(0,SalesHeader)or thisFILTERGROUP(10) SalesHeader.SETRANGE("No.",'10000');# FILTERGROUP(0) FORM.RUN(0,SalesHeader)or thisFILTERGROUP(10) SalesHeader.SETRANGE("No.",'10000');# FILTERGROUP(5) FORM.RUN(0,SalesHeader)The filters remain hidded and non-removable as long as they have been set in different filtergroup than the one set on the record at the point of FORM.RUN call.
Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;1 -
Thanks Slawek
For the information i am using NAV 2016. I will do more testing and will get back to the forum
ThanksUnited Kingdom0
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
- 611 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
