You don't need to use the attribute function to get the current feature fields, just use the field name:
'output_'|| "name" "id" || "name" On Sat, 28 Feb 2015 at 01:59 Niccolò Marchi <[email protected]> wrote: > Hi all, > I'm having some problems with the new atlas SQL features and I feel like a > dumb. > 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. > indeed, once started with the atlas production, a temporary image is > created and then overwritten, leaving me with nothing. > > I tried with: > > $atlasfeatureid || '_' || attribute($atlasfeature, "name" ) > > and then > > attribute( $atlasfeature, "id" ) || '_' || attribute( $atlasfeature, > "name" ) > ("id" is a numeric field within the table) > > any suggestion? > > > thank you in advance! > all the best, > > Nic > > > ------------------------------ > <http://www.avast.com/> > > This email is free from viruses and malware because avast! Antivirus > <http://www.avast.com/> protection is active. > > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
