Announcements
No record found.
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
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.
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.
could you explain this please
Hi ievgen Miroshnikov
i add this code to the initFromCustTableIL method but not working
First of all you need to explain what code have you added and have you done incremental CIL after doing your change ?
/*ahmed*/ salesTable.PartyCountry =custTable.PartyCountry;
many thanks it working with me after incremental CIL
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CP04-islander 16
GiacomoRovai 4
Douglas Noel 2