Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to add look up on a form

(0) ShareShare
ReportReport
Posted on by 578

Hi Guys,

I have situation that I need to add a lookup on a form to select the data from the drop down list. Consider below example I have a table called Table1 with one field A and with data A1, A2, A3 etc and there is form called Form1 available for the same. (to allow user to create data on the table)

when I select the field account on a form the data from Table1 should be displayed as a drop down list and I should be able to select the either A1, A2 or A3 etc. sometimes user needs to write manually on the field which may not available in the list. (system should allow that too).

how can I achieve it. please help..

3173.Capture.PNG

*This post is locked for comments

  • D365  beginner Profile Picture
    D365 beginner 578 on at
    RE: How to add look up on a form

    Thanks Crispin & Tatiana,

    Can you guys give me a sample  code for lookup method based on above example please ? Explaining where the code should be too... (datasource of the form or table etc)

  • RE: How to add look up on a form

    Hi,

    You can add the relation in your main table with your table A, using the key field.

    With this you will display the list of your second table A and the fields that was setup in the table properties.

    Or you can overwrite the lookup method in the field in your DataSource (in the form) to display the list that you want to show.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans