https://issues.qgis.org/https://issues.qgis.org/favicon.ico2015-06-17T23:08:53ZQGIS Issue TrackingQGIS Application - Bug report #12989: "The relation is not valid.." message is shown alwayshttps://issues.qgis.org/issues/12989?journal_id=624602015-06-17T23:08:53ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Affected QGIS version</strong> changed from <i>2.8.2</i> to <i>master</i></li></ul><p>I see it also on master/linux.</p> QGIS Application - Bug report #12989: "The relation is not valid.." message is shown alwayshttps://issues.qgis.org/issues/12989?journal_id=624612015-06-17T23:09:48ZMatthias Kuhn
<ul><li><strong>Resolution</strong> set to <i>invalid</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>In the demo project the referencing side of the relation in the relation manager is not the same as the one configured in the layer properties.</p>
<p>The layer which is in "referencing layer" - the child side, the one where you have N elements holding a reference to a parent element - is the one where the field widget can be configured as Relation Reference. You will notice that the combobox for choosing the relation is empty on the widget config dialog.</p>
<p>The other side (the parent) needs to have the relation editor (which can be found in the dock at the bottom of the fields dialog for the drag and drop editor).</p>
<p>For your project don't use the relation reference widget on the SUOLOREL side as that it is the parent side and with the autogenerated form the embedded form are already shown (see at the bottom of the form).</p>