<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 Niccolo,</p>
<p>I ran into the exact same problem yesterday. I opened an issue:</p>
<p><a href="https://issues.qgis.org/issues/17170">https://issues.qgis.org/issues/17170</a></p>
<p>Are you sure that this worked in earlier QGIS versions? It would help to know that.</p>
<p>Andreas</p>
<p>On 2017-09-21 00:58, Niccolò Marchi wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --> <!-- head ignored --><!-- meta ignored --> <!-- meta ignored -->
<div class="WordSection1">
<p class="MsoNormal">Hi all,</p>
<p class="MsoNormal">I'm using 'refactor fields' in the modeler.</p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">Once I've loaded the fields from a shp and then added some new ones, I'm not able to add a formula (e.g. 'to_int(substr("MM_GG", 1,2))' ) to the latter ones because it's recognised as wrong in the Expression dialog. Furthermore, the Expression dialog doesn't recognise any field in the label 'Fields and values' and simply shows 'NULL'.<!-- o ignored --></p>
<p class="MsoNormal">BTW, if I write the formula directly in the box without using the expression dialog and then run the model, it works smoothly.</p>
<p class="MsoNormal">Are those intended behaviours?</p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">i just updated from 2.18.11 to .13 .<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">all the best,<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">Niccolò<!-- o ignored --></p>
</div>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<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="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
<p><br /></p>

</body></html>