How to insert new data into a one-to-many relationship #5943
-
I have a Qfield project with a one to many table relationship. One layer with point geometry (sampling plot) and one without geometry (trees). I see that this is possible: #2993 However, I don't know how I have to configure the QGIS project in order to be able to insert new data to the trees table in QField. In the QGIS project, I joined my trees table to the sampling plot layer, but this doesn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For working with this workflow described, you need to configure a relation of layers (in your case, the point and the trees table). In the project properties, for the field relation, it is highly recommended to use a string field with UUID. You have two options for creating UUID values:
For more reference on how to configure this, check the following documentation: https://docs.qfield.org/how-to/attributes-form/#configure-a-relation-widget |
Beta Was this translation helpful? Give feedback.
Hi @Barbara-Schneider,
For working with this workflow described, you need to configure a relation of layers (in your case, the point and the trees table). In the project properties, for the field relation, it is highly recommended to use a string field with UUID. You have two options for creating UUID values:
uuid()
expression.For more reference on how to configure this, check the following documentation:
https://docs.qfield.org/how-to/attributes-form/#configure-a-relation-widget
https…