Skip to content

How to insert new data into a one-to-many relationship #5943

Answered by SeqLaz
Barbara-Schneider asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. You can use the "UUID Generator" widget, which will automatically generate unique UUID values for each entry.
  2. Alternatively, you can use the "Text Edit" widget and manually generate UUID values using the 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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Barbara-Schneider
Comment options

Answer selected by Barbara-Schneider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants