Bulk create child records from selection list
Looking for a way to help users customize child related tasks when creating a new parent record.
Nothing has been built quite yet but the basic structure would be to have a parent table Transactions which relates to a child table Tasks. Each Transaction could have a dozen or more Tasks. To aid the user in not having to create each Task for each new Transaction, I was thinking I could present to the user a "list" of available Tasks that they could select. Then when the parent record was saved, each of the selected Tasks would be created as new records in the related child table (linked, of course, to the new created parent record).
I'm thinking, to start, I will need some kind of field on the parent record which would display the list of available Tasks. I would envision that this field would only be visible when the record is being created and hidden all other times.
Once the Tasks have been selected I would need some way of translating each selection into its own child record which relates to the parent record.
Does this sound possible? Is there a different/better way to approach this?
------------------------------
Ember
------------------------------
Just to close this loop. I did go with the copy master and detail option. For this instance I modified it so that just the child records would be created as opposed to both the parent and child records. This setup should meet our needs as the need for the 30+ child records isn't a given when a new parent record is created. This keeps my app free of extraneous records that may never get populated. The user will be able to select child records that aren't applicable but still allow for additional ones as needed.
As a bonus, I configured the parent record to hide the "copy child records" button if any child records are already created. But, if for whatever reason, they delete all the child records, they will see the button again to re-add.
Happy with the solution.