Sorting Sales Lines in Sales Order.

snehalppatel
Member Posts: 34
Hello Friends,
In one of the projects, I need to sort Sales Lines of the Sales Order based on the No. of the Item. I tried using the DataItemTableView property to sort the Sales Lines as soon as they are inserted. But it doesn't work, it seems that the Line No. is causing the problem.
Please let me know if there is any other solution for accomplishing the above.
Thanks in advance.
Regards,
Snehal
In one of the projects, I need to sort Sales Lines of the Sales Order based on the No. of the Item. I tried using the DataItemTableView property to sort the Sales Lines as soon as they are inserted. But it doesn't work, it seems that the Line No. is causing the problem.

Please let me know if there is any other solution for accomplishing the above.
Thanks in advance.
Regards,
Snehal
Snehal Kumar Patel
MCTS - Microsoft Dynamics NAV
MCTS - Microsoft Dynamics NAV
0
Comments
-
I just found that AutosplitKey is enabled on the Sales Order Subform, which is responsible for maintaining the Order of the Sales Line. What are the implications, if I add "No." field in the Primary Key prior to the "Line No." ???
Will it create conflict anywhere else?
Thanks,
SnehalSnehal Kumar Patel
MCTS - Microsoft Dynamics NAV0 -
snehalppatel wrote:What are the implications, if I add "No." field in the Primary Key prior to the "Line No." ???
Will it create conflict anywhere else?
Thanks,
Huge implications. Don't do that. It will break your system everywhere.
All the sales line functionality is based on that key. Your Line No. field which is filled automatically bu autosplit key won't work.
Why do you want this so badly?0 -
The system is to be developed for Sales Representatives, who take the Order details on the phone. Once, they start entering details in the Sales Order, they need a sorted view of the Sales Order Lines, so that they can see what items have been entered in the Sales Lines. Number of Sales Lines are more than 40-50. So, it would be easy for them to view them in sorted order of Item No.
Is there any alternate way to achieve this, other than changing the Primary Key?
Thanks,
SnehalSnehal Kumar Patel
MCTS - Microsoft Dynamics NAV0 -
That can be achieved in other ways.
You can train them to change the key on the form using the sorting button when they want to review the order, and change it back when they want to insert.
You can create a new Non-Editable form that they can call for reviewing.
Or, even better, create a report that will show the lines sorted in whatever way you need.0
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