[Qgis-user] Set variables by UI
L.W.
eaglelw at gmx.de
Thu Nov 26 02:38:21 PST 2020
Thanks for your thoughts.
But, I asked for having the values to easily change (on little points)
them without writing the whole value (e.g. text).
If there were an event "onClosing"-Attribute-Dialog (UI, not list) then
everything would be fine for my needs.
I haven't found out how I can code a plugin the easy way ... python
isn't the easy way for me :-)
Am 26.11.2020 um 11:09 schrieb Bernd Vogelgesang:
>
> Without knowing more about your project than A and B, it is a guessing
> game what could be best.
>
> But to me, if I understood correctly, it sounds like you are about to
> create a data-redundancy over several layers.
>
> If those attributes are really the same, and stay the same, it would
> maybe me wiser to work with relations and/or virtual layers where you
> could deliver those common values without having to really store them
> individually in each layer.
>
>
>
> On 25.11.20 22:43, L.W. wrote:
>> That's what I want to use, but how to set the "default value" - no, not
>> per propertier and form builder.
>>
>> I want to set the DV by input in "UI A" (add feature to layer A) and
>> then add new feature to B, and in UI B the DV is set to value from
>> form A.
>>
>>
>> Am 25.11.2020 um 21:19 schrieb Harrissou:
>>> 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." <eaglelw at gmx.de> 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
>>> Qgis-user at lists.osgeo.org
>>> 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
>> Qgis-user at lists.osgeo.org
>> List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20201126/fceefafc/attachment.html>
More information about the Qgis-user
mailing list