Sales Header(Option field)

subhadynamics
Member Posts: 109
Hi All,
I have a Customized field Sales Type in sales header. The field is option and the values are Local, Export. Also the same field is the Sales Line ,but not a part of a primary key.
I need to insert the field (sales Type ) from sales header to the sales Line..The field is not part of a key so i cannot set the properties of subform.
So i caan insert the Sales type field in the Sales Line using the Code. where i need to write the code??in which trigger??? i have tried out ..but not get the result..
Please help me out!!!!!
Thanks in advance
subha
I have a Customized field Sales Type in sales header. The field is option and the values are Local, Export. Also the same field is the Sales Line ,but not a part of a primary key.
I need to insert the field (sales Type ) from sales header to the sales Line..The field is not part of a key so i cannot set the properties of subform.
So i caan insert the Sales type field in the Sales Line using the Code. where i need to write the code??in which trigger??? i have tried out ..but not get the result..
Please help me out!!!!!
Thanks in advance
subha
0
Comments
-
Hi,
Try coding on FORM-OnActivateForm trigger...Thanks & Regards
Raja.B0 -
personally i would try to insert the code on the sales line table.
oninsert or onvalidate of the "no" field using a simple get.
somthing like
salesheader.get("document type","document no");
salesline."sales type" := salesheader."sales type";
coding on the form I would try to avoid if at all possible.0 -
Thanks for the immediate reply and it is working fine.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