<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Without looking into it in detail, adding this to the expression
context sounds like a good idea.<br>
<br>
<div class="moz-cite-prefix">On 11/17/2015 12:56 PM, Alessandro
Pasotti wrote:<br>
</div>
<blockquote
cite="mid:CAL5Q673YDdhLodX8a_H3BfSMzxh83pMPqpYjBPL-Od4SJFU1Kg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
it seems that the widget's expression context does not
have access to the currently edited record.<br>
<br>
</div>
Maybe I've just not found a way to do that but it's
impossible to filter relations with an expression built upon
the the values of the "main" record (the one currently
edited in the form) because $currentfeature refers to the
relation layer, <br>
<br>
</div>
A possible solution would be to add a $currentformfeature to
the expression and add the edited feature to the expression
context.<br>
<br>
</div>
Would it be a possible solution? <br>
Any hint?<br>
<div>
<div>
<div>
<div>
<div><br>
-- <br>
<div class="gmail_signature">Alessandro Pasotti<br>
w3: <a moz-do-not-send="true"
href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Matthias Kuhn
OPENGIS.ch - <a class="moz-txt-link-freetext" href="https://www.opengis.ch">https://www.opengis.ch</a>
Spatial • (Q)GIS • PostGIS • Open Source</pre>
</body>
</html>