<div dir="ltr"><div>Hi Alexandre,</div><div><br></div><div>You are the man!</div><div><br></div><div>For the record, I leave the filter expression from Alexandre Neto, that work like a charm:</div><div><br></div><div>eval(' "di" in' + replace(current_value( 'DISTRITOS'),array('{','}','"'),array('(',')','\'')))</div><div><br></div><div>Thank you very much Alex!</div><div><br></div><div>Best regards,</div><div>Pedro</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Alexandre Neto <<a href="mailto:senhor.neto@gmail.com">senhor.neto@gmail.com</a>> escreveu no dia sábado, 23/11/2019 à(s) 16:58:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Pedro,<div dir="auto"><br></div><div dir="auto">Can't you check if  "di" is present in the {Value1,Value2,...} set?</div><div dir="auto"><br></div><div dir="auto">If needed, you can replace the curly brackets by curved ones and run the all expression by eval()</div><div dir="auto"><br></div><div dir="auto">Alexandre Neto</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A sábado, 23/11/2019, 13:48, Pedro Venâncio <<a href="mailto:pedrongvenancio@gmail.com" target="_blank">pedrongvenancio@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all, <br><br>I'm building a form with two fields of "Value Relation Widgets", one depending on the other.<br><br>This works really well as explained here <a href="https://youtu.be/ipezh4KXrgo" rel="noreferrer" target="_blank">https://youtu.be/ipezh4KXrgo</a> by Alessandro, but I would like that both fields have the multiple selections option. <br><br>Here is a sample project: <a href="https://cld.pt/dl/download/db1a1787-0adc-4633-a0c9-356c41f269eb/drilldown_multiple.zip" rel="noreferrer" target="_blank">https://cld.pt/dl/download/db1a1787-0adc-4633-a0c9-356c41f269eb/drilldown_multiple.zip</a><br><br>In that project, I have two shapefiles (one configured without and another configured with 'Allow multiple selections') and two csv files (Value Relation sources).<br><br><div>So, without multiple selections option, I simply use <br></div><div>"di" = current_value( 'DISTRITOS') <br></div><div>as filter expression.</div><br>This does not work with multiple selections, because this option saves the multiple values between braces: {Value1,Value2,...}.<br><br>So, how could I use the filter here, to have the second field filtered by the options selected in the first field?<br><br>Thank you very much!<br><br>Best regards,<br>Pedro Venâncio</div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>
</blockquote></div>