Hi Paolo,
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

Harrissou

Le vendredi 23 décembre 2016, Paolo Cavallini <[email protected]> a
écrit :
> Hi all,
> if I define the function `$id` as a default value for newly entered
> geoms, I only get 0s. Is there a way of having a serial in shapefile?
> Yes, I know, nobody should use shapefiles anymore :)
> All the best, and thanks.
> --
> 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
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to