<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body 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="overflow-wrap: break-word; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hi,</div>
<div style="overflow-wrap: break-word; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br style="overflow-wrap: break-word; font-family: "Segoe UI"">
</div>
<div style="overflow-wrap: break-word; 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="overflow-wrap: break-word; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br style="overflow-wrap: break-word; font-family: "Segoe UI"">
</div>
<div style="overflow-wrap: break-word; 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="overflow-wrap: break-word; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br style="overflow-wrap: break-word; font-family: "Segoe UI"">
</div>
<div style="overflow-wrap: break-word; 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="overflow-wrap: break-word; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br style="overflow-wrap: break-word; font-family: "Segoe UI"">
</div>
<div style="overflow-wrap: break-word; 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="overflow-wrap: break-word; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br style="overflow-wrap: break-word; font-family: "Segoe UI"">
</div>
<div style="overflow-wrap: break-word; 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="overflow-wrap: break-word; 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="overflow-wrap: break-word; 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="overflow-wrap: break-word; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="overflow-wrap: break-word; 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>
</body>
</html>