Sourcetableview - subform

sneha
Member Posts: 191
I have added a new filed (customfield - integer) to production bom line and is editable on the form. User enters value into this field, now I want to sort production bom lines subform based on this new field.
I have added a new key (customfiled) to production bom line table. Adding this key to sourcetableview property, is the right way to do?
I have added a new key (customfiled) to production bom line table. Adding this key to sourcetableview property, is the right way to do?
0
Comments
-
If you will set it dynamically , u must use the setcurrentkey() command on the subform.
But don't forgett, that the PK is "Production BOM No.,Version Code,Line No." and the property AutoSplitKey is YES on the subform.
So, if you change the key, the datas in the subform has a other order. If you then insert a line between two other lines, you can become the errormessage like:
"The Production BOM Line already exists. Identification fields and values: xxxxxxx"
RegardsDo you make it right, it works too!0 -
Thank you Garak, I placed the setcurrentkey(customfield) on Onopen subform. I entered the lines 1..5. Now when I change the value on custofield, lines are jumbling, and some times I am getting error message – Production BOM Line already exist- for new line insertion. I understood the reason of error message, because lines are sorted by customfield (not Line No.), and Autosplitkey is causing the problem. But how best can I do this without changing any property of the form0
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