[Qgis-user] Default values in form

Paolo Cavallini cavallini at faunalia.it
Fri Jun 26 02:35:44 PDT 2015


Agreed, an important improvement. Please open a ticket if not already there.
All the best.

Il 26 giugno 2015 08:16:32 GMT+00:00, "Blumentrath, Stefan" <Stefan.Blumentrath at nina.no> ha scritto:
>Hei Didier,
>
>I guess you could use a python init function for the form in order to
>define "default values" (see:
>http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/).
>However, sounds like a useful enhancement of the Custom form
>functionality (at least I would be interested too)...
>
>Cheers
>Stefan
>
>-----Original Message-----
>From: qgis-user-bounces at lists.osgeo.org
>[mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of didier peeters
>Sent: 26. juni 2015 10:08
>To: qgis-user
>Subject: [Qgis-user] Default values in form
>
>Hello,
>
>Simple question : is there a way to set a default value for an
>attribute in QGis ?  
>
>I have Postgis layers in QGis in which I’m inserting or updating data,
>and I would like that some fields would be filled automatically unless
>I fill them myself.  Well that’s the definition of a default value, and
>I don’t think that using layers stored in Postgis would make any
>difference.
>
>Thanks
>Didier
>_______________________________________________
>Qgis-user mailing list
>Qgis-user at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/qgis-user
>_______________________________________________
>Qgis-user mailing list
>Qgis-user at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
http://faunalia.eu/
Sent from mobile, sorry for being short
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150626/7a2f1b43/attachment.html>


More information about the Qgis-user mailing list