Issue with CODE data type

Chowdary
Member Posts: 148
Hello!
I got to check filed of type CODE values contains A..Z,1..9 and all possible combinations. I have no problem if both fields are numbers. But if field1 = 3 and field2 = A then navision saying A is gretaer than 3. But im my data it should be A is less than 3. How to solve the issue?
any ideas or previous post links of same issues are highly appreciated
Thank You
Chowdary
I got to check filed of type CODE values contains A..Z,1..9 and all possible combinations. I have no problem if both fields are numbers. But if field1 = 3 and field2 = A then navision saying A is gretaer than 3. But im my data it should be A is less than 3. How to solve the issue?
any ideas or previous post links of same issues are highly appreciated
Thank You
Chowdary
Pleasure in the job puts perfection in the work
0
Comments
-
Sort order depends on used database (native/sql) and codepage, you don't have possibility to change this sort order. In this case, you can't sort this data like you want.
You can try to create additional key with order like you need.
There are a lot of problems with proper sorting of code fileds, and you will find on mibuso.com many information about it.Rafał
http://www.nav.info.pl (The first polish blog about Microsoft Dynamics NAV)0 -
You should even be aware, that the sort order of a temporary table isn't always the same as the actual table:
http://ppe.blogs.msdn.com/b/nav/archive ... nment.aspx
I think this was changed for NAV2013, but I haven't tested it.Regards
Peter0
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