<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Ale,</p>
<p>That would explain it ;-)</p>
<p>I also tried various other combinations, like</p>
<p>with @current_parent_feature, @feature, etc. - but haven't found a working version ...</p>
<p>I might try with a variable ;-) I got the variable filter version working in another project. But that involved Python ...</p>
<p>Andreas</p>
<p id="reply-intro">On 2022-12-06 16:52, Alessandro Pasotti wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Sorry, I just realized that you are using relation-reference widgets<br />and not value-relation widgets.<br /><br />I don't think that the current_(parent)_value will work in that case,<br />it wasn't implemented.<br /><br />Cheers<br /><br />On Tue, Dec 6, 2022 at 3:59 PM Andreas Neumann via QGIS-Developer<br /><<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />Hi,<br /><br />In one of my form setups,  I would like to filter one relation reference widget combo box with a filter expression based on the selected entry of another relation reference value.<br /><br />A static filter like:<br /><br />szenario_art = 'Brand'<br /><br />works as expected and it returns the filtered values - but as soon as I try to base it on the value of another relation reference widget, it fails ...<br /><br />I tried<br /><br />szenario_art = current_value('szenario_art')<br /><br />but no records get selected.<br /><br /><br />Questions:<br /><br />Does the current_value() return the "internal value" or the "human readable" value?<br />Do I have to eval() something in the filter expression?<br />Is there a way to test "current_value" somehow? I tried to write the changed value into another text widget (with default values on update), but it will always return "NULL". In the expression editor, I also always get "NULL" in the preview.<br /><br />Thank you for your help,<br /><br />Andreas<br /><br /><br /><br />_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
<br /><br /></div>
</blockquote>
<p><br /></p>

</body></html>