I have 1:m relationship tables in my PostgreSql. I like to show the main table attributes as well as the relational table attributes (like grid rows) in QGIS attribute-edit-form.
What are the entries i have to add to dd_* tables to get this?
I have 1:m relationship tables in my PostgreSql. I like to show the main table attributes as well as the relational table attributes (like grid rows) in QGIS attribute-edit-form. What are the entries i have to add to dd_* tables to get this? |
|||
|
Starting in QGIS 2.2 (still in development) there will be a new feature that will allow to manage 1:n relations in a very fancy way. When you open a feature form with a relation, you will the feature attributes and the related atributes connected to it. In the following example the table "reaches" as a 1:n relation to a table "maintenances". For more information of how will it work take a look into this blog post from Matthias kuhn. |
|||||||||||||
|
Another approach will be to show a PostGIS view in QGIS, using 'Instead of triggers' in Postgres for handling CRUD operations. Field widges on the view in QGIS, can ensure the correct input, when updating joined fields from QGIS. |
|||||
|