<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Niccolo,</p>
<p>Perhaps you can open separate issues.</p>
<p>Thanks,</p>
<p>Andreas<br>
</p>
<br>
<div class="moz-cite-prefix">On 22.09.2017 02:15, Niccolò Marchi
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:HE1PR1001MB090666CB86F00A037D4274D9A7670@HE1PR1001MB0906.EURPRD10.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hi Andreas,</p>
<p class="MsoNormal">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.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A further minor issue related to the alg:
when selecting the field type, “double” and “data” are
repeated twice.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">An improvement could be also adding the
NULL value by default when a field is created. Does it make
sense?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Should these notes be added to your issue
or separated into other tickets?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">All the best,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Niccolò</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div
style="mso-element:para-border-div;border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>Da: </b><a
href="mailto:a.neumann@carto.net" moz-do-not-send="true">Andreas
Neumann</a><br>
<b>Inviato: </b>giovedì 21 settembre 2017 00:34<br>
<b>A: </b><a href="mailto:sciurusurbanus@hotmail.it"
moz-do-not-send="true">Niccolò Marchi</a><br>
<b>Cc: </b><a href="mailto:qgis-developer@lists.osgeo.org"
moz-do-not-send="true">qgis-developer@lists.osgeo.org</a><br>
<b>Oggetto: </b>Re: [QGIS-Developer] refactor fields
doesn't accept expressions</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Hi
Niccolo,<o:p></o:p></span></p>
<p><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">I
ran into the exact same problem yesterday. I opened an
issue:<o:p></o:p></span></p>
<p><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><a
href="https://issues.qgis.org/issues/17170"
moz-do-not-send="true">https://issues.qgis.org/issues/17170</a><o:p></o:p></span></p>
<p><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Are
you sure that this worked in earlier QGIS versions? It would
help to know that.<o:p></o:p></span></p>
<p><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Andreas<o:p></o:p></span></p>
<p><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">On
2017-09-21 00:58, Niccolò Marchi wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #1010FF
1.5pt;padding:0cm 0cm 0cm
5.0pt;margin-left:0cm;margin-right:0cm">
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Hi
all,<o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">I'm
using 'refactor fields' in the modeler.<o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">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:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">BTW,
if I write the formula directly in the box without using
the expression dialog and then run the model, it works
smoothly.<o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Are
those intended behaviours?<o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">i
just updated from 2.18.11 to .13 .<o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">all
the best,<o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Niccolò<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org"
moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
target="_blank" moz-do-not-send="true">
https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
target="_blank" moz-do-not-send="true">
https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></span></p>
</div>
</blockquote>
<p><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
</body>
</html>