Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Modified method for unbound controls of a form

Posted on by Microsoft Employee

I have a form having two fields (unbound controls) first having a lookup. When I select a value from lookup then the related data from a table should be filled automatically in the second field. What is code for the modified method to do?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modified method for unbound controls of a form

    Hi Sukrut

    Grid is not attached to data source. I declared it as auto declaration.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modified method for unbound controls of a form

    Hi John

    It works. I have another query I have a combo box control when I select a value based on  that data should get fetched and displayed in grid controls. How to do it. How to assign values to grid controls

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modified method for unbound controls of a form

    Hi John

    I have written the code

    //to fetch required data

    select SalesName from salesTable where CustomerAccount.valueStr() == salesTable.CustAccount;

    //to assign data to control

    Name.text(salesTable.SalesName);

    any suggestions please

    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modified method for unbound controls of a form

    Thanks John

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans