[Qgis-user] QGIS - value relation widget
Blumentrath, Stefan
Stefan.Blumentrath at nina.no
Thu Oct 1 13:23:09 PDT 2015
Hi Luca,
Sounds like a case for Python logic!
General principles are explained here:
http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/
Also nice, and probably exactly what you are looking for:
http://medspx.fr/blog/Qgis/cascade_forms/
Cheers
Stefan
From: qgis-user-bounces at lists.osgeo.org [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of Luca Lanteri
Sent: 1. oktober 2015 22:07
To: qgis-user <Qgis-user at lists.osgeo.org>
Subject: [Qgis-user] QGIS - value relation widget
Hi to all,
I need to build a form when the value of a combo are filtered basing on the value of anoter combobox.
I have a first combo where I choose the region and a second with the municipalities.
I need that the second combo shows only the municipalities of the choosed region.
I tried to use use the widget "relationship value" with the a filter like classe_munic = attribute($currentfeature, 'classe_munic') without any success.
Has anyone ever done something similar?
Thank in advance
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20151001/dfcec24c/attachment.html>
More information about the Qgis-user
mailing list