Hi,
I currently have a schema with 3 tables:
+-----------+ +-------------+ +-----------+
| documents | | groups | | positions |
+-----------+ +-------------+ +-----------+
| id | <---+ | id | <----+ | id |
| name | | | name | | | name |
+-----------+ +-----+ document_id | +------+ group_id |
+-------------+ +-----------+
Now I want to create a form for documents.
it should look a bit like this:
Nameinput: <input>
groupname1: <input>
table of positions
groupname2: <input>
table of positions
emptygroupname: <input>
empty table of positions
The empty group + table as last entry is to add a new group to the document.
If I add a new element, a new empty input + table should appear to add another one and so on.
Now I know I can use a tablecontrol for the positions and that would be fine, but how would I do it with the Groups?
Thanks.