SETFILTER by CustomerName start FROM character TO character
vandang
Member Posts: 101
Dear All,
I'd like to ask is there any way to search the Customer record base on the Customer name.
Ex: All customer name start FROM $ (all characters) TO all customer name start from S
then All customer name start FROM T TO all customer name start from Z
I put the code:
Cust.RESET;
CUST.SETFILTER(Name,'>=%1&<=%2','T*','Z*');
OR
Cust.RESET;
CUST.SETFILTER(Name,'%1..%2','T*','Z*');
Also not working, appreciate any advice with thanks!
EDIT:
Actually CUST.SETFILTER(Name,'%1..%2','T*','Z*');
can find the list but its missing
IF i put there Z* only the result will list all start from Z like : Z 1, Z a, Za,Zb...
but CUST.SETFILTER(Name,'%1..%2','T*','Z*'); just can find Z 1, Z a (with the space only) not include Za,Zb...
I'd like to ask is there any way to search the Customer record base on the Customer name.
Ex: All customer name start FROM $ (all characters) TO all customer name start from S
then All customer name start FROM T TO all customer name start from Z
I put the code:
Cust.RESET;
CUST.SETFILTER(Name,'>=%1&<=%2','T*','Z*');
OR
Cust.RESET;
CUST.SETFILTER(Name,'%1..%2','T*','Z*');
Also not working, appreciate any advice with thanks!
EDIT:
Actually CUST.SETFILTER(Name,'%1..%2','T*','Z*');
can find the list but its missing
IF i put there Z* only the result will list all start from Z like : Z 1, Z a, Za,Zb...
but CUST.SETFILTER(Name,'%1..%2','T*','Z*'); just can find Z 1, Z a (with the space only) not include Za,Zb...
0
Answers
-
I put there:
CUST.SETFILTER(Name,'%1|%1..%2|%2','T*','Z*');
So far I can get the expected result.
If you know there is any other ways for this please kindly share. 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