Select Row on Nav 2013 Subform page
jimmyf
Member Posts: 104
Is it possible to programatically Select Row on Nav 2013 Subform page. Essentially doing the same programatically as as clicking on a row with the mouse.
I have a requirement to create some action buttons which move a record up and down the sales order subform (I have acieved this by creating a new sort order integer field on the sales line table, added a new key to the table and sorthed the subform by this new key)
The functionality works fine however I need to manually click the record I am moving with the mouse before clicking the action button. I was hoping I can keep focus on the record i am moving in code.
I have a requirement to create some action buttons which move a record up and down the sales order subform (I have acieved this by creating a new sort order integer field on the sales line table, added a new key to the table and sorthed the subform by this new key)
The functionality works fine however I need to manually click the record I am moving with the mouse before clicking the action button. I was hoping I can keep focus on the record i am moving in code.
0
Comments
-
Be very careful with this...using a sort order other than the primary key will break the AutoSplitKey functionality so that line inserts won't work correctly. Plus you have to update the printed document to use the new key as well. The AutoSplitKey is the biggest issue...so you'd need to block inserting lines and add a new function for that, which would insert new lines respecting your new sort order. I assume you've worked through that side of things.
We created functionality along these lines for a client once...but we renumbered the primary key for the lines (and all related records) to implement it. The limitation was that lines could only be moved so long as nothing had been shipped on the document.Rob Hansen
http://www.epimatic.com0 -
Hi there
Thanks for your response. I did not change the primary key rather i added an additional key and sorted the sub form page on that.
The autosplitkey functionality still works fine.
The main reason for the post was to try and keep focus on the record that I am moving.
Any ideas on that?0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 333 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