Hi!This is my first topic and my english is not good!So...help if you know how!
I have expended Contact form with some basic informations about customer (I can create customer here).I can pick template for creating customer but when I create them (it is created fine) i don't know how to update Contact table and also Customer fields on Contact form.
Thanks!
0
Answers
I think that this will help you to find correct point and what you need to do to use standard functionality for syncing the Customer with Contact.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I think...after creating Customer I must initiate some synchronisation between Customer and Contact but I don't know how. Is there any function to force synchronisation....because...afther I create Contact and Customer(using template) and ...when I change some properti on Customer it modify coresponding property on Contact and vice versa. :roll:
Thanks again.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
....
IF( Cust.MODIFY)THEN BEGIN
UpdateContFromCust.OnModify(Cust);
....
Synchronization work fine fot two fields(it syinchronise them). For :
Cont."Cust. Gen. Bus. Posting Group", and Cont."Customer Posting Group".
In Code unit CustCont-Update is folowing code (OnModify):
....
Cont."Cust. Gen. Bus. Posting Group":=Cust."Gen. Bus. Posting Group";
Cont."Cust. VAT Bus. Posting Group":=Cust."VAT Bus. Posting Group";
Cont."Customer Posting Group":=Cust."Customer Posting Group";
....
I don't know wher is trick.
I do not understand your problem. You need to add your own code there which will copy your new fields from customer to contact. This code is doing it for standard fields. You need to expand it with your own code.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Cont."Cust. Gen. Bus. Posting Group",
Cont."Customer Posting Group",
and they are related to same fields in Customer. When I create Customer from Contact with manual inserting values in that fields in form it create customer fine. In that case all synchronization work fine. Other case is when I create Customer from Contact using template.I resolve that problem with previous Code but it doesn't work for all extended fields. It work only for :
Cont."Cust. Gen. Bus. Posting Group" and Cont."Customer Posting Group".
Field "Cust.Vat .Bus. Posting group" is empty afther creating Customer using template, even synchronization work for other fields.
I will try to to fix that. Thanks!
Thanks KINE!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Regard
it is self explanatory!!!!
Santosh
Where Stones can be transformed to Gold
Santosh
Where Stones can be transformed to Gold