<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">On Sat, 28 Feb 2015 at 01:59 Niccolò Marchi <<a href="mailto:sciurusurbanus@hotmail.it">sciurusurbanus@hotmail.it</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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 border="0" src="http://static.avast.com/emails/avast-mail-stamp.png">
</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>
______________________________<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></blockquote></div></div></div>