-
Notifications
You must be signed in to change notification settings - Fork 21
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
defaultValue for configurable-enum dropdowns #2273
Comments
As discussed in our technical call regarding this issue, my approach will be:
Let me know if you have any feedback or suggestions. |
@Abhinegi2 , you shouldn't have to implement a new method in EntitySchemaService but rather the
|
🎉 This issue has been resolved in version 3.46.2-master.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 3.46.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
In the Entity Schema we can set a
defaultValue
for an attribute/field. However, this currently does not work for configurable-enum dataType, because values for that are transformed in contrast to simple string dataType.For public forms we do support this:
ndb-core/src/app/features/public-form/public-form.component.ts
Lines 76 to 79 in e889991
Probably this approach can be used to improve the implementation of the default value assignment:
ndb-core/src/app/core/common-components/entity-form/entity-form.service.ts
Line 197 in e889991
The text was updated successfully, but these errors were encountered: