I have a project that comprises three crucial layers:
- A SpatiaLite layer named 'HABITATS_POLY'
- A layer without geometry named 'CORRESPONDANCES'
- A database named "BD_CORINE"
When a code is entered in the "EUNIS_1"
field of the 'HABITATS_POLY' layer, it is automatically copied to the "EUNIS"
field in the 'CORRESPONDANCES' layer.
Within the 'CORRESPONDANCES' layer, there is a field: "CHOIX_CORINE"
, which utilizes a value-relation widget with the 'BD_CORINE' layer. This field lists the matches between the entered EUNIS code and the corresponding "CORINE"
code(s) found in the "Label_CORINE"
field of the 'BD_CORINE' layer.
How can I ensure that the result of the relationship is automatically populated when only one result is possible?
For instance, if the EUNIS code is "G1.31," and there is only one matching code, say "44.61," I would like this result to be automatically selected.
Currently, I find myself manually selecting the results even when there is only one possible match. How can I streamline this process?