Hi Andreas, unfortunately I never used it in this way (with formulae) before: all the previous times I was simply adding empty fields or deleting useless ones.
A further minor issue related to the alg: when selecting the field type, “double” and “data” are repeated twice. An improvement could be also adding the NULL value by default when a field is created. Does it make sense? Should these notes be added to your issue or separated into other tickets? All the best, Niccolò Da: Andreas Neumann<mailto:a.neum...@carto.net> Inviato: giovedì 21 settembre 2017 00:34 A: Niccolò Marchi<mailto:sciurusurba...@hotmail.it> Cc: qgis-developer@lists.osgeo.org<mailto:qgis-developer@lists.osgeo.org> Oggetto: Re: [QGIS-Developer] refactor fields doesn't accept expressions Hi Niccolo, I ran into the exact same problem yesterday. I opened an issue: https://issues.qgis.org/issues/17170 Are you sure that this worked in earlier QGIS versions? It would help to know that. Andreas On 2017-09-21 00:58, Niccolò Marchi wrote: Hi all, I'm using 'refactor fields' in the modeler. 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'. BTW, if I write the formula directly in the box without using the expression dialog and then run the model, it works smoothly. Are those intended behaviours? i just updated from 2.18.11 to .13 . all the best, Niccolò _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer