In Settings, Options, Digitizing you can set "Reuse last entered attribute 
values" but I think its ALL fields.

Cheers - Phil

-----Original Message-----
From: Qgis-user <[email protected]> On Behalf Of Richard 
Duivenvoorde
Sent: Thursday, 26 November 2020 7:50 PM
To: Harrissou <[email protected]>; [email protected]; L.W. 
<[email protected]>
Subject: Re: [Qgis-user] Set variables by UI

Hi,

Some days ago while browsing code, I got the feeling that there was also some 
kind of option like "Remember last inserted value of this field, and use it as 
'default' for the next new feature to create...".
But I cannot find it in the gui (and no time to search for it in the code).

Does anybody is aware of such function?
Not sure if it is usefull for the original question though... It would not work 
over different layers...

Regards,

Richard Duivenvoorde

On 11/25/20 9:19 PM, Harrissou wrote:
> Hi,
> Something like setting default values for field: 
> https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/vector_properties.html#default-values
>  
> <https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/vector_properties.html#default-values>
>  ?
> 
> Regards,
> Harrissou
> 
> Le 25 novembre 2020 20:49:17 GMT+01:00, "L.W." <[email protected]> a écrit :
> 
>     Hello,
> 
>     I have a question again, I know the possibility of the project
>     variables, which can be queried from all layers.
>     I have to insert several points and lines or polygons in different layers.
>     All inserted features have in common that they have certain attributes
>     that are the same for all.
>     It would be nice if I only have to enter these common attributes for the
>     first feature and the values ​​are then automatically inserted as
>     default values ​​for each new feature.
>     One possible way would of course be a link to a shared data table, but I
>     don't necessarily want to go this way for reasons.
>     I know the option of giving a UI a Python script when it is opened (even
>     if I can't Python), but I haven't found anything to execute a script
>     after closing, for example.
>     Obviously logical, you can of course set the variables beforehand, but
>     that would be another step that you have to take beforehand and you
>     cannot get to these variables without a whole series of mouse clicks.
> 
>     Any ideas?
> 
>     Regards
>     
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>     Qgis-user mailing list
>     [email protected]
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
> <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
> <https://lists.osgeo.org/mailman/listinfo/qgis-user>
> 
> 
> -- 
> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma 
> brièveté.
> 
> _______________________________________________
> Qgis-user mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to