<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 href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div></div></div></div></div>