<div dir="auto">Hi, <div dir="auto">No workaround. QGIS makes relations on the tables that are loaded in QGIS. You will always need both tables. </div><div dir="auto">Régis</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 13 mars 2020 à 21:21, Jean-Philippe Chenel <<a href="mailto:jp.chenel@live.ca">jp.chenel@live.ca</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Hi,</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br style="font-family:"Segoe UI"">
</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
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.</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br style="font-family:"Segoe UI"">
</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
When all is done, I make a qlr file to save all the layer definitions.</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br style="font-family:"Segoe UI"">
</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
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.</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br style="font-family:"Segoe UI"">
</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
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.</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br style="font-family:"Segoe UI"">
</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Database: postgresql 9.6</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
QGIS version 3.10.3</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Layers and tables are in the database.</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);background-color:rgb(255,255,255)">
With best regards,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
</div>
</div>

_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>