web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Auto lookup using EDT with Table reference

(0) ShareShare
ReportReport
Posted on by

I'm having trouble getting an auto lookup to work with a new EDT without adding a specific lookup form.  The older EDTs (which have the table relationship defined in the Relations node) seem to work by either having some fields in the related table under the auto lookup field group, or having field names filled in for TitleField1 and TitleField2 (also on the related table).  By "working", I mean I get a dropdown automatically when I open the table in the AOT.

I'm trying to add a column to a table which has a new extended data type.  edt.JPG

Here's the EDT:

(reference table is Table123, Table Reference is EDT123 == Table123.mycode

related.JPG

And the related/reference table

mymaintest.JPG

table123.JPG

When I open my MyMainTestTable in the AOT, I expected to see a dropdown for field 3, but I don't.

mymaintest.JPG

What am I missing/doing wrong????

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,897 Most Valuable Professional on at

    I see that your table has no ReplacementKey. Create a unique index working as the natural key (it will contain "mycode" field, I assume), set AlternateKey = Yes and use it in table's ReplacementKey property.

  • Community Member Profile Picture
    on at

    Thanks for responding!  I already had the unique index created, but set the AlternateKey propertyc2.JPG    c2.JPG

    Then added the replacement key:  ( I also tried changing isLookup in the screenshot below to yes)

    c3.JPG

    unfortunately it still doesn't work.  Do you know if there's a "new EDT" example in the codebase that works? (without a lookup form)  

  • Mea_ Profile Picture
    60,286 on at

    Hey amycww,

    Do you have any fields in this index ?

  • Community Member Profile Picture
    on at

    do you add the relation?

  • Community Member Profile Picture
    on at

    No, I hadn't!  But I just added one and unfortunately it didn't do the trick.  I duplicated one of the "old style" EDTs and changed the reference and that worked just fine.  Guess I could go that route if I have to, but it seems like I should be able to make this work.

  • Community Member Profile Picture
    on at

    I don't see a place to add a relation in a new EDT.  Here are the two I created... 456 is a "duplicate" of one of the

    old ones.  456 works, 123 doesn't

    6518.c4.JPG

  • Community Member Profile Picture
    on at

    you need to add the relation in the EDT like the SalesId, in older version (AX2009) this was very easy to do it, but not you need to change more than only add: dynamics-ax.blogspot.com/.../ax-2012-understanding-changes-to-table.html

  • Mea_ Profile Picture
    60,286 on at

    Hi amycww,

    Maybe this blog can help you blogs.msdn.microsoft.com/.../referencetable-table-references-on-edt it explains the difference between ReferenceTable and Table References in details.

  • Community Member Profile Picture
    on at

    Hi Tatiana:

    I did found that blog, but unfortunately none of the screen shots show up so its not very useful :(

  • Community Member Profile Picture
    on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans