Re: [Qgis-user] QGIS attribute forms question

2023-12-05 Thread Aguilar Bolivar, Rosa (UT-ITC) via QGIS-User
Hi,
If I understood correctly,  You want to reuse a form given that a layer has 
more columns.
If you are using QGIS GUI you  can:
Option A. Change the data source to the layer. The form will remain. Add/edit 
the new attributes
Option B. Add the new layer and copy styles (form)  --> paste the style/form to 
the new layer

Hope this helps.

Rosa
-
Dr. Rosa Aguilar
University of Twente
Faculty of Geoinformation Science and Earth Observation
Connect with me on 
LinkedIn
https://rosaguilar.github.io
-
The essential is invisible to the eye. Saint-Exupéry

From: QGIS-User  On Behalf Of Brent Wood via 
QGIS-User
Sent: Tuesday, December 5, 2023 4:35 AM
To: 'Qgis-user@lists.osgeo.org' 
Subject: [Qgis-user] QGIS attribute forms question

Hi,

I have created some forms for data entry/edit using QGIS.

I have successfully exported them & imported them to apply in different 
computers with QGIS.

It can take several hours to create such a form where there are 80+ columns in 
the underlying database table,

I now have the situation where the underlying table needs columns added or 
removed.

QGIS will not apply a saved form to a layer unless the structure is identical.


How can I reuse a form for a layer representing a database table with (say) a 
single new column, by adding the new column to the form, rather than manually 
creating the whole form from scratch?


Thanks

Brent Wood

Principal Technician, Fisheries
NIWA
DDI:  +64 (4) 3860529
[https://www.niwa.co.nz/static/niwa-2018-horizontal-180.png]
Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529

National Institute of Water & Atmospheric Research Ltd (NIWA)
301 Evans Bay Parade Hataitai Wellington New Zealand
Connect with NIWA: niwa.co.nz 
Facebook 
LinkedIn 
Twitter 
Instagram 
YouTube
To ensure compliance with legal requirements and to maintain cyber security 
standards, NIWA's IT systems are subject to ongoing monitoring, activity 
logging and auditing. This monitoring and auditing service may be provided by 
third parties. Such third parties can access information transmitted to, 
processed by and stored on NIWA's IT systems.
Note: This email is intended solely for the use of the addressee and may 
contain information that is confidential or subject to legal professional 
privilege. If you receive this email in error please immediately notify the 
sender and delete the email.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS attribute forms question

2023-12-04 Thread Andreas Neumann via QGIS-User
Dear Brent,

Hm - this is not what I observe. Normally you should be able to carry over
attribute widget definitions to other layers even if the attributes don't
fully match. It would assign those who match.

Are you talking about the "drag and drop" configuration mode (there are
three different form configuration modes).

I used this all the time when I was configuring more complex projects. I
never had issues when adding or removing columns.

If this doesn't work, it should be reported as a bug with data helping to
reproduce the issue.

I am sure this can be fixed.

Andreas


On Tue, 5 Dec 2023 at 04:35, Brent Wood via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Hi,
>
> I have created some forms for data entry/edit using QGIS.
>
> I have successfully exported them & imported them to apply in different
> computers with QGIS.
>
> It can take several hours to create such a form where there are 80+
> columns in the underlying database table,
>
> I now have the situation where the underlying table needs columns added or
> removed.
>
> QGIS will not apply a saved form to a layer unless the structure is
> identical.
>
>
> How can I reuse a form for a layer representing a database table with
> (say) a single new column, by adding the new column to the form, rather
> than manually creating the whole form from scratch?
>
>
> Thanks
>
> Brent Wood
>
> Principal Technician, Fisheries
> NIWA
> DDI:  +64 (4) 3860529
> 
> Brent Wood
> Principal Technician - GIS and Spatial Data Management
> Programme Leader - Environmental Information Delivery
> +64-4-386-0529
>
> National Institute of Water & Atmospheric Research Ltd (NIWA)
> 301 Evans Bay Parade Hataitai Wellington New Zealand
> *Connect with NIWA:* niwa.co.nz  Facebook
>  LinkedIn
>  Twitter
>  Instagram
>  YouTube
>  To ensure
> compliance with legal requirements and to maintain cyber security
> standards, NIWA's IT systems are subject to ongoing monitoring, activity
> logging and auditing. This monitoring and auditing service may be provided
> by third parties. Such third parties can access information transmitted to,
> processed by and stored on NIWA's IT systems.
> Note: This email is intended solely for the use of the addressee and may
> contain information that is confidential or subject to legal professional
> privilege. If you receive this email in error please immediately notify the
> sender and delete the email.
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 

--
Andreas Neumann
QGIS.ORG board member (treasurer)
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS attribute forms question

2023-12-04 Thread Adam Nielsen via QGIS-User
> It can take several hours to create such a form where there are 80+
> columns in the underlying database table,
> 
> I now have the situation where the underlying table needs columns
> added or removed.
> 
> QGIS will not apply a saved form to a layer unless the structure is
> identical.
> 
> How can I reuse a form for a layer representing a database table with
> (say) a single new column, by adding the new column to the form,
> rather than manually creating the whole form from scratch?

I'm not sure if there's a better way, but can you duplicate the form,
add or remove columns as needed to match the target, then use that as
your saved form?

In other words, instead of copying one form and trying to make it fit
onto a different structure, can you modify the source form/structure so
you get a new saved form that already matches the updated structure?

I'm assuming you're talking about copying and pasting the "Attributes
Form" from one layer to another but I could be misunderstanding.

Cheers,
Adam.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user