[Qgis-developer] One to many relations: forms

Paolo Cavallini cavallini at faunalia.it
Wed May 7 00:59:00 PDT 2014

Hi all.
I'm working with forms and one to many relations, and I do not know whether I hit a
current limitation, or if I'm missing something.
I have custom forms (D&D designer) for both parent and child tables. I want to add
the custom child form to the parent one, so the user can insert new data in the
parent table, and add data to the child from the same form. I cannot find a way to do
it with D&D forms.
With autogenerated forms, this is possible, but:
* the FK, added by hand to the parent, is not shown on the list of the available ones
for child (so the list is taken from the saved table)
* in the tab showing the parent form, also the child table is shown (twice in my case).
I find this rather confusing. It seems to me that the function is geared for adding
children to existing parents, rather than adding parents and children in one shot: am
I wrong? I think also the second case is quite useful in many contexts.
Thanks for any suggestion.
All the best.
Paolo Cavallini - www.faunalia.eu
Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html

More information about the Qgis-developer mailing list