<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 Alessandro,</p>
<p>Yesterday I had a meeting with Matthias regarding widget improvements. We also have a wishlist of widget improvements. I agree that it would make sense to port your dynamic values list filtering Python plugin to C++.</p>
<p>In your proposal I would prefer option 1) or try to marry the "Value Relation" widget with the "Relation Reference" widget and introduce your new filtering mechanism. Note that the "relation reference" and the "value relation" widgets both have filter options, but only with in the widget itself, not in relation with other widgets, like your plugin.</p>
<p>-----------------------------------------</p>
<p>Over the years, quite some overlap appeared in the widgets. In my opinion, with QGIS 3.0, we should do an effort to clean up the overlapping widgets. But we'd need an "update strategy" for old obsolete widgets and make sure that the new widget variants really do all that the old widgets could do.</p>
<p>As an example:</p>
<p>The "Value Relation" and the "Relation Reference" Widgets have a lot of overlaps. Ideally they should be combined into one widget.</p>
<p>The newly introduced "External Resource" widget makes the "Photo", "Filename" and potentially also the "Web View" more or less obsolete.</p>
<p>I think the QGIS users would prefer a smaller list of widgets with options, and not many overlapping widgets that do very similar things.</p>
<p>Andreas</p>
<p>On 2016-02-02 09:52, Alessandro Pasotti wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br /><br /></div>
to allow for drill-down forms, a few months ago, I've created a modified value relation widget with a companion form function that allow to implement dynamic filtering (or altering) of fields in a form.<br /><br /></div>
It can be easily ported in the core (it's basically a clone of the existing  value relation widget).<br /><br /></div>
The widget is available as a python plugin.<br /><a href="http://plugins.qgis.org/plugins/FormAwareValueRelationWidget/">http://plugins.qgis.org/plugins/FormAwareValueRelationWidget/</a></div>
More information here:<br /><a href="http://www.itopen.it/a-new-qgis-plugin-allows-dynamic-filtering-of-values-in-forms">http://www.itopen.it/a-new-qgis-plugin-allows-dynamic-filtering-of-values-in-forms</a><br /><br /></div>
The main question is if there is any interest in porting this widget into the core, then if this should be<br />1. a replacement of the existing value relation widget</div>
2. an optional feature of the existing value relation widget</div>
3. a new widget<br /><br /><br /></div>
<div>I would like to hear your thoughts about this.</div>
<br />
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><br />-- <br />
<div class="gmail_signature">Alessandro Pasotti<br />w3:   <a href="http://www.itopen.it">www.itopen.it</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<p> </p>
<div> </div>
</body></html>