Multi level form with 2 children - is this possible?
Multi level form with 2 children - is this possible?
We have a nice multi-level form,.
Load the parent table
Select a parent row
Child rows display if any exist
Can add new children
Taking this one step further, is it possible to set it up so that when you click on the parent, it displays 2 independent children with similar Add/Update/Delete functionality?
Example:
Parents are musicians
Child #1 - instruments the parent is skilled to play
Child #2 - performances with details of every performance or maybe a bibliography list, just something.
This question has an accepted answers - jump to answer
Answers
As is two
datatable
fields in your form, both of which have nested editing abilities?Yes indeed that is possible - you can have as many as you want. They are independent fields, so you'd just set each up as you would for a single editable
datatable
- just make sure your variable names don't overlapAllan
By overlap, usually I specify the field with the table like:
parent.id
parent.roworder
parent.title
child1.id,
child1.roworder
child1.title
child2.id
child2.roworder
child2.title
That should be fine?
I got it figured out, have a working form with several child tables.