Hi
i create new field for country in sales table and add it to create sales form i need to fill this field automatically when select customer account
*This post is locked for comments
Hi
i create new field for country in sales table and add it to create sales form i need to fill this field automatically when select customer account
*This post is locked for comments
Hi ievgen Miroshnikov
many thanks it working with me after incremental CIL
Hi ievgen Miroshnikov
i add this code to the initFromCustTableIL method but not working
/*ahmed*/ salesTable.PartyCountry =custTable.PartyCountry;
First of all you need to explain what code have you added and have you done incremental CIL after doing your change ?
Hi ievgen Miroshnikov
i add this code to the initFromCustTableIL method but not working
could you explain this please
Hi Ahmed,
You can achieve it using x++ logic on the table or datasource modifiedField method. The addresses are stored in the table LogisticsPostalAddress. A customer can have multiple addresses linked via the global address book record. Probably you need the primary address, but you didn't specify that information in your question.
You can add your code to initFromCustTableIL method of SalesTable table, you will find standard code that initializes various fields on salesTable from customer record there, so follow same logic.
André Arnaud de Cal... 291,904 Super User 2024 Season 2
Martin Dráb 230,605 Most Valuable Professional
nmaenpaa 101,156