<div dir="ltr"><div>Hi,<br></div>Andreas, what about using a CASE WHEN ... THEN...( ELSE ...) END function?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-08 13:53 GMT+02:00 Neumann, Andreas <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi,</p>
<p>Would it be possible to add a "WHERE" clause to the field calculator? Currently, if you want to update a subset of the records you would have to do a two-step producedure:</p>
<p>1. Make a selection</p>
<p>2. Open field calculator and use the checkbox "only update selected features".</p>
<p>I think, in some workflows it would be more efficient if one had a text input area where one can enter a WHERE clause and the field calculator would respect the WHERE clause, if filled in. It would reduce the two-step operation into a one or 1.5 step operation, so more efficient. If you have to update based on multiple different subsets it would be even more efficient.</p>
<p>Would this be a useful enhancement to more users? Esp. for those who know SQL ;-) ?</p>
<p>Thanks and greetings,</p>
<p>Andreas</p>
<div> </div>
</div>
<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="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>