Order customer lis by "No."
carioka
Member Posts: 20
HI,
On Form Customer List I change on the SourceTableView SORTING("No.") for my list shows sort by "No.".
But when i lunch the form the number 12399 show before the number 124
help me?
On Form Customer List I change on the SourceTableView SORTING("No.") for my list shows sort by "No.".
But when i lunch the form the number 12399 show before the number 124
help me?
0
Comments
-
No. is not a number but text. The sorting is different between SQL server and native database.0
-
Did you select the criteria from sorting defaults ?
I changed mine to
SORTING(No.,Document Type) ORDER(Ascending)
and it worked straight away0 -
That means you are on SQL and SQL by default sorts code-fields as text.
You can do 2 things:
1) change the property SQL "SQL Data Type" to Variant or Integer. But that means that ALL FIELDS where an "Item No." can be put must be changed. And remember that in some (like T37,T39) can also be put a G/L Account or FA,...
2) Better is to rename your items so they have the same lenght Like "12399","00124".Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
dont run.jannestig wrote:Did you select the criteria from sorting defaults ?
I changed mine to
SORTING(No.,Document Type) ORDER(Ascending)
and it worked straight away
another solution?
if i created one field integer with the value of "No." and i sort by this field.... ????
Thanks...0 -
You would be adding:
1) Unnecessary fields.
2) Unnecessary Keys.
3) Unnecessary Code to update the field every time a record is inserted.
I would prefer renaming the customers from 1 to 00000001 or C00000001 or something similar.
It's up to you...
0 -
:oops: I read items and it was about customers. But if you change items by customers in my post, it remains valid.
That's the best solution!kapamarou wrote:I would prefer renaming the customers from 1 to 00000001 or C00000001 or something similar.
It's up to you...
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
The reason is, that SQL have a correct sort order and the native didn't
viewtopic.php?f=23&t=29589Do you make it right, it works too!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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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