Problem on filtering filed No.

nromain
Member Posts: 57
Hello everybody,
Maybe it's monday and i'm not correctly awaken but i have an issue that looks simple...
I try to filter chart of accounts on a filtering field of a setup table. The filtering field can talk values like 111000..222000 (for instance).
My chart of accounts must contain all accounts different from accounts between 111000 and 222000..
On the Open form of the chart of accounts, i have put this code :
SETFILTER("No.",'<>%1',"G/L Account Filter");
And it doesn't work and i don't know why..
Thanks for your help !!
Maybe it's monday and i'm not correctly awaken but i have an issue that looks simple...
I try to filter chart of accounts on a filtering field of a setup table. The filtering field can talk values like 111000..222000 (for instance).
My chart of accounts must contain all accounts different from accounts between 111000 and 222000..
On the Open form of the chart of accounts, i have put this code :
SETFILTER("No.",'<>%1',"G/L Account Filter");
And it doesn't work and i don't know why..
Thanks for your help !!
0
Comments
-
SETFILTER("No.",'<%1|>%2',GETRANGEMIN("G/L AccountFilter"),
GETRANGEMAX("G/L Account Filter"));There are no bugs - only undocumented features.0 -
Thank you for your reply but my problem is that the filtering field can be a range or a value or twice, etc...
111000..222000
111000&111001
111000&222000..333000
There is not always a range.0 -
Where do you get the Setup table record?
Maybe in the OnOpen
SomeSetup.GET;
Hope this helps
Albert0 -
setfilter("No.","G/L Account Filter"); helps
because your "G/L Account Filter" includes wildcards and wildcards in Parameter 3 of setfilter does'nt work
See also this post http://www.mibuso.com/forum/viewtopic.p ... =setfilterDo you make it right, it works too!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