How could change some fields on Lines to affect on Header

vandang
Member Posts: 101
My current solution for this issue is customize code on Form 5025649: Repair Type - onValidate trigger:
IF ("Repair Type" = 'Warranty') THEN BEGIN
ServiceHeaderG."Bill-to Customer No." := 'PAG';
ServiceHeaderG.MODIFY;
END;
It could change Bill-to Customer No. after I click on Header. That's not my expect solution. It should change immediately and all fields related to Bill-to Customer No. field (Bill-to Name, Bill-to Name 2, Bill-to Address...) should be updated too. Any suggestion is welcome
IF ("Repair Type" = 'Warranty') THEN BEGIN
ServiceHeaderG."Bill-to Customer No." := 'PAG';
ServiceHeaderG.MODIFY;
END;
It could change Bill-to Customer No. after I click on Header. That's not my expect solution. It should change immediately and all fields related to Bill-to Customer No. field (Bill-to Name, Bill-to Name 2, Bill-to Address...) should be updated too. Any suggestion is welcome
0
Comments
-
The logic is wrong. Rethink it out so that you can put this functionality in the header. The problem you have now is just the beginning of a series of issues you are going to have.
You should never modify a header from aline table in Navision.David Singleton0 -
Did you search this forum "Update header form through line form"? This has been discussed many times.
AFAIK You can not update header form from line until you click on header form if you want, then you need to have a look on TimerInterval property of header form(can cause of some performance issue).0 -
David Singleton wrote:The logic is wrong. Rethink it out so that you can put this functionality in the header. The problem you have now is just the beginning of a series of issues you are going to have.
You should never modify a header from aline table in Navision.
Thanks David, I think you are right! I checked on NAV 2009 W1 version W1 6.00(6.00.2926), there is no Bill-to Customer on line area while my version I'm working on exist such field. So that the way this requirement was born0
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