<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 18, 2019 at 10:15 AM <<a href="mailto:Burghardt.Scholle@stadt.wolfsburg.de">Burghardt.Scholle@stadt.wolfsburg.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear list,<br>
<br>
I have a postgres layer that is connected to other postgres lookup tables via joins. QGIS does not take these joins into account when copying a layer (to another project) or when creating style or layer files. This is really annoying if you have to rebuild the joins by hand over and over again. Am I doing something wrong? In the dialog window "Edit Vector Join" I see no further ways. I only activated the option "Cache join layer in virtual memory". <br></blockquote></div><div><br></div><div>Hi,</div><div><br></div><div>It's a known issue, the root cause is that the relations/joins are stored by QGIS using the layer ID (which is unique) so the relations are lost in case of layer copy or save/load from a style file, the good new is that I've got a customer that has committed some budget to fix this problem and I'll start to work on that soon.</div><div><br></div><div>The solution would imply storing some more information about the layers that compose a relation so that we can at try to reconstruct the relation by searching for "similar" layers in the existing project before giving up with a broken relation/join.</div><div><br></div><div>The same issue applies to the value-relation widget.</div><div></div><div></div><div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>