Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your comment says this can't be done. It can, the syntax is undocumented. #5

Open
tieniber opened this issue Mar 1, 2018 · 3 comments

Comments

@tieniber
Copy link

tieniber commented Mar 1, 2018

I'm referring to here:

<!--property key="attr" type="attribute" entityProperty="tableEntity" This does not work! Error: entity cannot be resolved>

You just have to specify the entity property like this:
entityProperty="../tableEntity"
So you're indicating that you need to traverse up one level to get to that entity property. Hope that helps!

@mgroeneweg
Copy link
Member

Good to know the feature is actually there. However, Mendix is quite busy pruning any undocumented stuff while updating the documentation on the official features. So I will not use this feature until it is clear that it is here to stay.

Thanks for the heads-up anyway,

@tieniber
Copy link
Author

tieniber commented Mar 5, 2018

Turns out this actually is documented:

Per: https://github.com/mendix/docs/blob/development/content/refguide/xml-reference-guide.md

entityProperty:
Assigns a entity to a property. This should point to the key attribute of the entity to which it is related. This could also be relative (like "../entityName") when the attribute is inside a object list:

@mgroeneweg
Copy link
Member

LOL! That's new. Well it does sound like a great idea however it would also break existing usage of the widget so I probably need to add the new properties while deprecating the old stuff to allow migration.
I will reopen this issue, probably a nice one when adding new functionality.

@mgroeneweg mgroeneweg reopened this Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants