-
Notifications
You must be signed in to change notification settings - Fork 22
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
Make dropdown (configurable-enum) fields usable in Entity title (toStringAttributes) #2865
Comments
After reviewing the requirements, my proposed approach is as follows -
Let me know if this approach looks good or if you have any suggestions |
This sounds good. Please go ahead and raise questions or doubts if any come up during implementation. |
…(toStringAttributes) (#2871) closes #2865 --------- Co-authored-by: Sebastian Leidig <[email protected]>
🎉 This issue has been resolved in version 3.46.3-master.8 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 3.47.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Entity Types have configuration how a linked record of this type is displayed. The fields supported for currently have to be of dataType "string". For this, also fields of type "configurable-enum" (i.e. dropdown category fields) should be supported.
e.g. here that the "name" is used when showing a referenced "Child" record:

this is configured in the Admin UI:

User Story / Scenario:
Implementation steps & considerations:
toStringAttributes
EntityBlockComponent
) use the Entity class'toString()
method (which builds a "title" for that record based on thetoStringAttributes
array. The logic in this method needs to be adjusted to handle ConfigurableEnumValue values (because those are objects and we need to use their.label
property to get the correct string representation for users)The text was updated successfully, but these errors were encountered: