Replies: 2 comments
-
What does you child collection config look like? I believe you should be able to not bother showing an organization field and given UI builder knows that's your FK property, it should auto populate it with the value. I think you can either have a constructor on your model that accepts the parent id, or if it can't find one, it should attempt to set the property value after construction. |
Beta Was this translation helpful? Give feedback.
-
Hi Matt, |
Beta Was this translation helpful? Give feedback.
-
Hi,
When I add a child collection to a collection and press create new entity for this child collection, I want to be able to find from what parent the child is being created, to automatically assign values. e.g. I have a collection of organizations to which I want to add members (the child collection). When I add a member, I want their organization to automatically be assigned. (or to ignore that field because I can assign the value via insert function.)
I'm not 100% sure this is not already possible some way. If you know a way to already achieve my goal please let me know.
Here are some images to better demonstrate what I'm trying to solve:
First I select a company in this case

Then I go to members of this organisation

Create a new member

Now the organization field should no longer be required.

Beta Was this translation helpful? Give feedback.
All reactions