-
Notifications
You must be signed in to change notification settings - Fork 70
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
Support link a sub-form to data model #13764
Comments
According to the documentation, this is done via the layout-set. That being said, we could still tie it to the config of the subform component in our UI, as one of the "required" configs. I believe we have talked about moving the creation of a subform layoutset into the flow of adding/configuring the subform component - datatype could be a part of that.
|
I liked the first bullet point. In addition to that, should the user have the option to change which data model/type is referenced from the settings on the layout set itself? @nkylstad There might be some validations concerns by allowing editing the data model reference... |
I think we should consider supporting all 3 flows. i.e. starting with nothing, starting with an existing data model, and starting with a ready configured layoutset, incl. datamodel,
Yep, I think we should keep it simple, and say that all config related to subform has to be done via the subform component. You can edit the contents of the data model, and layouts f.ex., but not really swap it out with anything else. @Annikenkbrathen probably has some thoughts here as well 😊 |
Yes, I agree with that! 👍 |
If no data model connected --> Enable dropdown to select data model and have the "Lag ny datamodell" button. |
we should wait for this #13999 |
Tested in dev, noticed two issues:
|
@Jondyr
|
We need to be able to configure which data model a subform should use. Should this be configured directly in the subform component, or through the layout set configuration?
The text was updated successfully, but these errors were encountered: