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

DelazJ delazj at gmail.com
Fri Dec 23 04:15:42 PST 2016


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 <cavallini at faunalia.it> 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
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161223/2d0b06f5/attachment.html>


More information about the Qgis-developer mailing list