Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy/paste style form widget type #28087

Closed
qgib opened this issue Oct 30, 2018 · 12 comments · Fixed by #38786
Closed

Copy/paste style form widget type #28087

qgib opened this issue Oct 30, 2018 · 12 comments · Fixed by #38786
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority

Comments

@qgib
Copy link
Contributor

qgib commented Oct 30, 2018

Author Name: Lene Fischer (@LeneFischer)
Original Redmine Issue: 20266
Affected QGIS version: 3.4.5
Redmine category:forms
Assignee: Denis Rouzaud


In 3.4 copy/paste style for forms does not paste
Tried to save/load style - same result

In 3.2 it worked for same feature type


@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2018

Author Name: Lene Fischer (@LeneFischer)


The forms are created - but the widget types/default values are not added


  • subject was changed from Copy/paste style form to Copy/paste style form widget type

@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2018

Author Name: Nyall Dawson (@nyalldawson)


  • assigned_to_id was changed from Nyall Dawson to Denis Rouzaud

@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2018

Author Name: Denis Rouzaud (@3nids)


Did you copy forms only?
You need to copy fields category too.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Lene Fischer (@LeneFischer)


No I haven´t copied the fields - The two layer has different fields (table structure) only in the Form they share fields.
If I copy fields wouldn´t it change the table structure ?
Another question - I can´t copy / paste both at the same time - Then how do I perform the action ?

In 3.2 it worked - except for different geometry types - If I saved the style into a file and deleted the Geometry part, it worked as wanted.
Now I can´t even use save style.

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open
  • priority_id was changed from Normal to High

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Denis Rouzaud (@3nids)


You just need to use copy all style categories to have everything coming along.
Otherwise, if you need a specific combination:

  • do it one after the other
  • use the dialog in vector layer properties to export to file the specific categories you want to export.

  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Denis Rouzaud (@3nids)


I don't see a regression here.
The save style dialog is still accessible (and now can be configured with specific categories, so no need to manually edit the file)


  • regression was changed from 1 to 0

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Lene Fischer (@LeneFischer)


No I don´t want to copy all styles...
The main problem is that copying the fields is in my mind the data structure - correct me if I´m wrong - and that´s not what I want. I want the entire attribute form - including the widget type and filter expression - see image.


  • 13642 was configured as form.JPG

@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2018

Author Name: Denis Rouzaud (@3nids)


well, the configuration of the widget is actually the field category of the style categories. At the moment, you cannot choose some specific fields you would like to copy.

but I think we are maybe misunderstanding.

when you copy "fields" in the style menu, it doesn't copy the fields but their configuration.

So in your case, you can copy/paste fields then copy/paste form and this should work.

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


So in your case, you can copy/paste fields then copy/paste form and this should work.

closing fot lack of feedback.


  • status_id was changed from Feedback to Closed
  • resolution was changed from to no timely feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Lene Fischer (@LeneFischer)


It still doesnt work.
If I copy a form and paste to another layer - nothing happens.
If i copy all and just past the form it doesnt work either.
I don´t want to copy past all.


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 3.4.0 to 3.4.5
  • status_id was changed from Reopened to Open
  • resolution was changed from no timely feedback to

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Forms labels May 25, 2019
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Sep 16, 2020
nyalldawson added a commit that referenced this issue Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority
Projects
None yet
1 participant