Filter on ??? in text fields

mplatvoet
Member Posts: 34
Does anyone know how to set a filter on the actual value of three question marks in a text field?
In NF 2.60 A I try to set a filter on the field "On Hold" (Text 3) where the filter is set to show only the records containing the value "???". But Navision shows me all records which have a value of three characters in this field.
In NF 2.60 A I try to set a filter on the field "On Hold" (Text 3) where the filter is set to show only the records containing the value "???". But Navision shows me all records which have a value of three characters in this field.
0
Comments
-
I didn't find how to do it from the user interface (F7), but in the code, you have to use the SETRANGE function instead of the SETFILTER one(i.e. : custentr.SETRANGE(OnHold,'???')). I seems to work on my french 2.50 and I don't have time to install a 2.6. Hope it helps.
Happy new year.0 -
The question mark is the "wildcard" character, meaning "any character at this location is allowed". However, when you want to use this character (or the *, or one of the other filter builders) as literal filter value, you need to tell Navision it should find an exact match and not treat it as wildcard.
So, Filter value : ??? will show all records with any three characters,
but filter value : =??? will show only those records with three question marks in the field.
John0
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