<div dir="ltr">Can't use the field calc bar without having to leave the attribute table?<div><br></div><div>Run the selection</div><div>Use the bar</div><div>Run different selection</div><div>etc</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 8, 2016 at 10:31 PM, Neumann, Andreas <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span> wrote:<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>Yeah - I know about the CASE WHEN possibility, which is great if you want to do it all in one statement, but I think the WHERE section would still be useful for people familiar with databases and who want to set different values to different subsets one by one, without having to leave the field calculator.</p><span class="HOEnZb"><font color="#888888">
<p>Andreas</p></font></span><div><div class="h5">
<p>On 2016-04-08 14:09, DelazJ wrote:</p>
<blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div dir="ltr">
<div>Hi,</div>
Andreas, what about using a CASE WHEN ... THEN...( ELSE ...) END function?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-04-08 13:53 GMT+02:00 Neumann, Andreas <span><<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" target="_blank">Qgis-developer@lists.osgeo.org</a><br> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
</div>
</blockquote>
<p> </p>
<div> </div>
</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>