Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Develop form

(0) ShareShare
ReportReport
Posted on by 375

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 customer2625.Untitled11.png account

*This post is locked for comments

  • Verified answer
    AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Develop form

    Hi ievgen Miroshnikov

    many thanks it working with me after incremental CIL

  • Verified answer
    AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Develop form

    Hi ievgen Miroshnikov

    i add this code to the initFromCustTableIL method  but not working

    /*ahmed*/   salesTable.PartyCountry         =custTable.PartyCountry;

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Develop form

    First of all you need to explain what code have you added and have you done incremental CIL after doing your change ?

  • AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Develop form

    Hi ievgen Miroshnikov

    i add this code to the initFromCustTableIL method  but not working

  • AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Develop form

    could you explain this please

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,904 Super User 2024 Season 2 on at
    RE: Develop form

    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.

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Develop form

    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.  

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.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans