[Qgis-developer] $id not working as default value

Paolo Cavallini cavallini at faunalia.it
Fri Dec 23 05:37:33 PST 2016


Il 23/12/2016 14:32, Giovanni Manghi ha scritto:

> The solution from the Gitter discussion
> 
> aggregate( 'layername','max',"id")+1

thanks Giovanni

> We need of course a more user friendly way to allow users have
> incremental/serial ids in their shapefiles...

sure, e.g. a named preset expression, as previously suggested.
all the best.
-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis


More information about the Qgis-developer mailing list