[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-user
Subject: [Qgis-user] Drill-down forms with multiple selections option
From: Pedro_Venâncio <pedrongvenancio () gmail ! com>
Date: 2019-11-23 13:47:26
Message-ID: CAMCJChuwE7FWx+4_szCNTcVkWBpUR+ST9QeSaJp70EcWQ7TcMw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi all,
I'm building a form with two fields of "Value Relation Widgets", one
depending on the other.
This works really well as explained here https://youtu.be/ipezh4KXrgo by
Alessandro, but I would like that both fields have the multiple selections
option.
Here is a sample project:
https://cld.pt/dl/download/db1a1787-0adc-4633-a0c9-356c41f269eb/drilldown_multiple.zip
In that project, I have two shapefiles (one configured without and another
configured with 'Allow multiple selections') and two csv files (Value
Relation sources).
So, without multiple selections option, I simply use
"di" = current_value( 'DISTRITOS')
as filter expression.
This does not work with multiple selections, because this option saves the
multiple values between braces: {Value1,Value2,...}.
So, how could I use the filter here, to have the second field filtered by
the options selected in the first field?
Thank you very much!
Best regards,
Pedro Venâncio
[Attachment #5 (text/html)]
<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">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_multip \
le.zip">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>
[Attachment #6 (text/plain)]
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic