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

Giovanni Manghi giovanni.manghi at gmail.com
Fri Dec 23 05:32:37 PST 2016


Hi,

> I recall a discussion on gitter about adding a serial expression but not
> sure it's implemented.
> A workaround could be using maximum("field") + 1

The solution from the Gitter discussion

aggregate( 'layername','max',"id")+1

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


Cheers!

-- G --


More information about the Qgis-developer mailing list