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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Unexpected Int64 control on form when using self-relation

(0) ShareShare
ReportReport
Posted on by 573

Dear experts,

I created a new field A to table UnitOfMeasure, which is extended from EDT UnitOfMeasureRecId. That means table has self-relation with itself. 

When I drag this new field to form, an Int64 control is added instead of reference group control.

Any suggestion?

Thanks in advance.

Bernard

I have the same question (0)
  • Suggested answer
    Joris dG Profile Picture
    17,775 on at
    RE: Unexpected Int64 control on form when using self-relation

    We can't see your code obviously, but it's typically one of the properties not being set as expected and things don't work. I suggest following the blog shown here. I also have an old post for AX2012 that mentions functionality and the setup required, you can check if there's anything in there that you may have missed: www.codecrib.com/.../ax-2012-recids-and-unitofwork-foreign.html

  • bernardqin Profile Picture
    573 on at
    RE: Unexpected Int64 control on form when using self-relation

    Hi WIll,

    Unfortunately, I have done these operations and still get the same result.

    Thanks.

  • WillWU Profile Picture
    22,361 on at
    RE: Unexpected Int64 control on form when using self-relation

    Hi bernardqin,

    If you have followed the article correctly, please try to rebuild your project and sync the database.

  • bernardqin Profile Picture
    573 on at
    RE: Unexpected Int64 control on form when using self-relation

    Thank for your reply. Yes, the relation is generated automatically when I drag EDT to table.

  • Suggested answer
    ergun sahin Profile Picture
    8,824 Moderator on at
    RE: Unexpected Int64 control on form when using self-relation

    Do you have relation (FK)

    devmusings.blog/.../

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,239

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 903 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 604 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans