<div dir="ltr">Double quote is a field reference, single quote is a string. Functions normally take a string for a field name, if you use "fieldname" that means value of fieldname.<br></div><br><div class="gmail_quote">On Mon, 30 Mar 2015 at 22:07 Junior Delaz <<a href="mailto:delazj@gmail.com">delazj@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br></div>Niccolo, Nathan is right. his proposal is the simplier and recommanded.<br></div>But I think your formulae should work if you write <span style="font-family:"arial,sans-serif";color:rgb(0,0,0)"><br>$atlasfeatureid || '_' || attribute($atlasfeature, 'name' ).<br></span></div><span style="font-family:"arial,sans-serif";color:rgb(0,0,0)">Only simple quote ' and not " near the field's name inside attribute function brackets.<br><br></span></div><span style="font-family:"arial,sans-serif";color:rgb(0,0,0)">By the way, can someone explain me why for some functions </span><span style="font-family:"arial,sans-serif";color:rgb(0,0,0)"><span style="font-family:"arial,sans-serif";color:rgb(0,0,0)"> (attribute, getFeature)</span>, you need to use simple quote for the fields and double quotes when using other functions ?<br></span></div><span style="font-family:"arial,sans-serif";color:rgb(0,0,0)">And when you double-click on field's name, they are always appended to your expression with double quote. Can this be standardised ?<br></span><div><div><div><span style="font-family:"arial,sans-serif";color:rgb(0,0,0)"><br></span></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-30 12:02 GMT+02:00 Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You don't need to use the attribute function to get the current feature fields, just use the field name:<div><br></div><div>'output_'|| "name"</div><div><br></div><div>"id" || "name" <br><br><div class="gmail_quote"><div><div>On Sat, 28 Feb 2015 at 01:59 Niccolò Marchi <<a href="mailto:sciurusurbanus@hotmail.it" target="_blank">sciurusurbanus@hotmail.it</a>> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
I'm having some problems with the new atlas SQL features and I feel
like a dumb.<br>
before 2.6 I've been able to set the output name such as "feature id
_ feature name", but I can't understand (or make it work) with the
new functions $atlasfeature and $atlasfeatureid.<br>
indeed, once started with the atlas production, a temporary image is
created and then overwritten, leaving me with nothing.<br>
<br>
I tried with: <br>
<span style="font-family:'arial,sans-serif';color:#000000"><br>
$atlasfeatureid || '_' || attribute($atlasfeature, "name" )<br>
<br>
and then<br>
</span><br>
<span style="font-family:'arial,sans-serif';color:#000000">attribute(
$atlasfeature, "id" ) || '_' || attribute( $atlasfeature, "name" )<br>
("id" is a numeric field within the table)<br>
<br>
</span>any suggestion?<br>
<br>
<br>
thank you in advance!<br>
all the best,<br>
<br>
Nic<br>
<br><br>
<hr style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table style="border-collapse:collapse;border:none">
<tbody><tr>
<td style="border:none;padding:0px 15px 0px 8px">
<a href="http://www.avast.com/" target="_blank">
<img src="http://static.avast.com/emails/avast-mail-stamp.png" border="0">
</a>
</td>
<td>
<p style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
This email is free from viruses and malware because <a href="http://www.avast.com/" target="_blank">avast! Antivirus</a> protection is active.
</p>
</td>
</tr>
</tbody></table>
<br>
</div></div></div><span>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a></span></blockquote></div></div></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>
</blockquote></div>