<div dir="ltr">Hello everyone,<br><br>I want to implement the following in qgis<br><br>Given 3 geopackage tables, one is the findings, the second is the type, the third is the material, and the fourth is the findings_material. The latter is a connecting table between the type and the material. The tables refer to each other with foreign keys. The foreign key is of type uuid.<br><br>The task: in qgis, the findings table needs to be edited, the findings field refers to the type uuid with a foreign key, the material field refers to the uuid key of the material table. qgis automatically recognizes the relationships and sets up a relation reference widget.<br><br>What I want: when I select the finding, i.e. the corresponding value from the type table, in the material it should filter the values based on the pivot table.<br>This is how it looks in sql.<br><br>SELECT<br>a.uuid AS material_uuid,<br>a.values AS material_values <br>FROM<br>material AS a<br>JOIN<br>result_material AS pivot ON a.uuid = pivot.material_fk<br>WHERE<br>pivot.characteristic_fk = '6c5356d0-3257-49ed-8f95-4262d33175c9';<br><br><div>Is this possible at the form level? I couldn't write such a filter at all.</div></div>