Hi Paolo,<br>I recall a discussion on gitter about adding a serial expression but not sure it's implemented.<br>A workaround could be using maximum("field") + 1<br><br>Harrissou<br><br>Le vendredi 23 décembre 2016, Paolo Cavallini <<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>> a écrit :<br>> Hi all,<br>> if I define the function `$id` as a default value for newly entered<br>> geoms, I only get 0s. Is there a way of having a serial in shapefile?<br>> Yes, I know, nobody should use shapefiles anymore :)<br>> All the best, and thanks.<br>> --<br>> Paolo Cavallini - <a href="http://www.faunalia.eu">www.faunalia.eu</a><br>> QGIS & PostGIS courses: <a href="http://www.faunalia.eu/training.html">http://www.faunalia.eu/training.html</a><br>> <a href="https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis">https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis</a><br>> _______________________________________________<br>> Qgis-developer mailing list<br>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>