[Qgis-user] Relation widget values

Régis Haubourg regis.haubourg at gmail.com
Fri Mar 13 14:53:33 PDT 2020


Hi,
No workaround. QGIS makes relations on the tables that are loaded in QGIS.
You will always need both tables.
Régis

Le ven. 13 mars 2020 à 21:21, Jean-Philippe Chenel <jp.chenel at live.ca> a
écrit :

> Hi,
>
> I've a question regarding the Value Relation Widget under Layer
> Properties/Attributes Forms. Making the configuration work very well to
> bind a field to a list of values of another table in the project.
>
> When all is done, I make a qlr file to save all the layer definitions.
>
> The problem appears when I reload the qlr file without all the relational
> tables. The fields are bound, but the values aren’t displayed. To make this
> work, I need to add the relational tables to the project too.
>
> Does it have a workaround or an alternative to make it work without adding
> all the tables to the project? I saw in the qlr file that the connection to
> postgresql and all needed information are in the file to make it work.
>
> Database: postgresql 9.6
> QGIS version 3.10.3
> Layers and tables are in the database.
>
> With best regards,
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200313/e793417b/attachment.html>


More information about the Qgis-user mailing list