Hi Holger,
If I understand correctly, you have the following setup:
1) SomeEntity with a *-1 association to UserDetails, and Userdetails has a 1-1 association to Account
2) The UserDetails objects are already there and connected to the Account objects
3) You want to show a dropdown(reference selector) from SomeEntity, setting the association to UserDetails, but using the account fullname as the caption for dropdown items
In this case, the reference selector does not support your usecase, but if you are on Mendix 9.24+ or Mx10+, you should be able to use the Combo Box widget (which is going to replace the reference selector in the future anyway). The Combo Box allows you to set a caption over association, so you don't need a copy of the attribute.
Best,
Joost
When using a reference selector towards a specialization entity, the list of attributes contains both the specific attributes as well as the generalizations attributes.
For example, add any entity with an association to Administration.Account (which is a specialization of System.User). When adding a reference selector to the account entity, you can see the Name attribute which is not stored in the Account entity but in the User entity.
Hi Joost,
you are completely right, and I have described the problem wrong (was a little bit in hurry).
In fact, we have an entity UserDetails that has an 1 to 1 association to Administration.Account. I want to add the UserDetails using the reference selector, but showing the attribute FullName of the entity Account.
So I don't have a generalization, but an associated entity.
Sorry for the confustion!
Best,
Holger