SortingKey on Form

ravi_navision
Member Posts: 102
Hi,
Here is what I am doing
Vendor card: Run the form. Change the sorting key to secondary key. Close and reopen the form, sorting key is still the same which we changed earlier.
I tried the same thing on sales order form. It doesn’t work. It always sorting by primary key, is it because of SourceTableView property?
Any suggestions! How can I do on sales order form with out changing the SourceTableView property. I can’t use setcurrentkey (user can choose any key Out of secondary keys)
Thanks,
ravi
Here is what I am doing
Vendor card: Run the form. Change the sorting key to secondary key. Close and reopen the form, sorting key is still the same which we changed earlier.
I tried the same thing on sales order form. It doesn’t work. It always sorting by primary key, is it because of SourceTableView property?
Any suggestions! How can I do on sales order form with out changing the SourceTableView property. I can’t use setcurrentkey (user can choose any key Out of secondary keys)
Thanks,
ravi
~~ravi
0
Comments
-
Your a little all over the place here. Are you talking about the vendor Card or the vendor list?
If i'm in the item, customer or vendor card and I have it sorted by primary jey no. as i flip thru the cards it's in "no." order.
If I change the sort to "search name" and flip thru the cards it's not sorted by name - if I leave the card and comeback - it is still sorted by the last sort I selected.
These cards should not have a sourcetableview set - it should be Undefined.
is your SAVETABLEVIEW = NO?
how do you want to change the sort of sales orders? by name? name isn't a sort choice in the sales header.0 -
Hi Savage,
Here is more detail about my issue
ON VENOR CARD (I haven’t changed any property of the base Navision form)
1. I change the sort to "search name" (or any other secondary key) and navigate between other forms, come back to vendor card- it is still sorted by the last sort I selected.
2. I change the sort to "search name" (or any other secondary key), if I leave the card and comeback - it is still sorted by the last sort I selected.
ON SALES ORDER (I haven’t changed any property of the base Navision form)
On sales order I tried to do the same. But the difference is when I close and reopen the form – It automatically set to primary key.
In the Sales Header, I have 15 keys. I can select any key at run time.
Thanks for your reply
ravi~~ravi0 -
hard to say without seeing the code. perhaps there's a RESET; somewhere in the code?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