[Qgis-user] Default values in form

Andreas Neumann a.neumann at carto.net
Fri Jun 26 05:15:04 PDT 2015


Hi,

When doing anything with "default" values we also have to think about 
the option we have which automatically fills in the values of the last 
inserted record.

Which one has precedence? The default value or the value of the last record?

Also - I think we probably need a mixture of default values and values 
from the last record - but I think the values of the last record are not 
fine-grained enough - so we could tell QGIS to use the values from the 
last record for some columns but for other columns use the default value.

We have to think about both approaches and need a collaboration of both, 
in my opinion.

Andreas

On 26.06.2015 12:14, didier peeters wrote:
> Thanks,
>
> I’ll surely take a look at your plugin, and open a ticket if necessary.
>
> @Stefan : I had seen that post by Nathan Woodrow, but was hoping for something ‘lighter’ …
>
> Didier
>
>
>> Le 26 juin 2015 à 11:32, Bernhard Ströbl <bernhard.stroebl at jena.de> a écrit :
>>
>> Hi,
>>
>> if you define the values as default in PostgreSQL and use my :) plugin DataDrivenInputMask [1] these values are inserted in the mask that is created by the plugin in QGIS. Thus for fields with defaults you cannot insert NULL vallues (but that's why you define a default).
>>
>> Bernhard
>>
>> http://plugins.qgis.org/plugins/DataDrivenInputMask/
>>
>> Am 26.06.2015 um 10:08 schrieb didier peeters:
>>> 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
>>>
>>
>>
>> __________ Information from ESET Mail Security, version of virus signature database 11847 (20150626) __________
>>
>> The message was checked by ESET Mail Security.
>> http://www.eset.com
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> Didier Peeters
> Institut de Gestion de l'Environnement et d'Aménagement du Territoire (IGEAT)
> Université Libre de Bruxelles (ULB)
> CP130/03
> av. F. D. Roosevelt 50
> B-1050 Bruxelles
>
> Tél : +32-2-650 68 17
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list