Simple Filter Question

djdave022002
Member Posts: 6
Hi, i don't know why but i can't figure this out and i have tried to find it online ...
In NAV 2017, how do i filter on field containing a space, i thought *' '* but this fails. Further, how do i combine that with not empty e.g. i tried <>''&*' '* but this also failed. And lastly, how do i filter on operator characters, e.g. i want any field containing <
In NAV 2017, how do i filter on field containing a space, i thought *' '* but this fails. Further, how do i combine that with not empty e.g. i tried <>''&*' '* but this also failed. And lastly, how do i filter on operator characters, e.g. i want any field containing <
0
Best Answer
-
Hello djdave022002,
field containing space: * *
combining with not empty: * *&<>' '
operator character with "<": '*<*'5
Answers
-
Hello djdave022002,
field containing space: * *
combining with not empty: * *&<>' '
operator character with "<": '*<*'5 -
You need to add them as substitution parameters, i.e.:
Customer.SETFILTER(Name, '<>%1&<>%2&%3', '* *', '', '*<*');
This will find you all Customers that DON'T have a space in their name AND are NOT blank AND have a "<" in the name1
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