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

Notifications

Announcements

No record found.

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
    237,699 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,284 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,284 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans