TransWikia.com

Displaying reference pictures to a varying value in QField

Geographic Information Systems Asked by Guio on December 30, 2020

While developing a QField project for forestry inventories, I aim at displaying botany board related to the current selected species selected in a scrolling-menu for field operator. It should be used as a reference to compare with the species suspected on the field. I followed this procedure : https://qfield.org/docs/prepare/add-1-n-pictures.html

Here is the referencing layer as a table containing pathes for the pictures related to the species named "photos_essence.csv"

enter image description here

Here is the referenced layer "Qfield_comptage.shp" used for digitizing.

enter image description here

In the project properties, i added a relation "photos_essence" between the referenced layer "Qfield_comptage.shp" and the referencing layer "photos_essence.csv". It should be linking species ("Essence") identified and the path to the pictures related to those species.

enter image description here

I added the relation "photos_essence" in Attribute Form of the "Qfield_comptage.shp" referenced layer.

enter image description here

Then I changed the widget type to attachment, linking it to the file containing the pictures

enter image description here

The end result gives a null value instead of displaying the pictures related to the species identified.

enter image description here

Do you have any insight of what i’m doing wrong ? I dont know if such a widget is conceivable.
Thank you in advance.

One Answer

Check...is "essence" unique in "Qfield_comptage.shp". It MUST be. I would recommend not using "essence" and the foreign key in your child table, instead use [Qfield_comptage].[ID].

If you want to send an example project over, I'm happy to look more closely.

Answered by Oisin on December 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP