-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
(Un)force hide form in relation widget #47226
Comments
Cannot reproduce on current master/linux. |
I tested the standalone form from identify and not from the attribute table, this might explain why I couldn't reproduce, I can reproduce it from the attr table. |
Yes, forgot that important detail. Good with a lot of screenshots. Since I have no geometry I have to go through the attribute table. |
elpaso
added a commit
to elpaso/QGIS
that referenced
this issue
Feb 8, 2022
nyalldawson
pushed a commit
that referenced
this issue
Feb 8, 2022
qgis-bot
pushed a commit
that referenced
this issue
Feb 8, 2022
nyalldawson
pushed a commit
that referenced
this issue
Feb 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug or the crash?
When the option to force hide form in the relation widget is selected, you can't unselect it to get the form to open in a new window again.
Steps to reproduce the issue
In an new project add two tables that could be related to each other 1:N. I have no geometry.
![bild](https://user-images.githubusercontent.com/4749245/152766411-770f0a17-eacd-4270-b37c-bf3c7cbbc590.png)
Add the relation in project properties. The form for new child features opens as a new window as default.
![bild](https://user-images.githubusercontent.com/4749245/152777087-a75591c1-85b1-42f1-bb5d-b407adce3c35.png)
Edit the Layer Properties -> Attributes Form for the parent table to use Drag and Drop Designer, add the Related child form to the parent form layout and select to Force hide form on add features. The form form for new child features opens in same parent form as expected.
![bild](https://user-images.githubusercontent.com/4749245/152778080-384471bb-d812-405d-9694-747bb860a3d6.png)
Edit the Layer Properties -> Attributes Form again and unselect to Force hide form on add features.
I get a warning : Deprecation Warning: Trying to set a relation config directly on the relation best_9a4a9b84_a270_4078_bad7_4b1a8102db16_plan_uuid_plan_c595510d_0873_4fd5_b7a1_add047b954fc_plan_uuid. Relation settings should be done for the specific widget instance instead. Use attributeEditorRelation->setNmRelationId() or attributeEditorRelation->setForceSuppressFormPopup() instead.
And the form still doesn't open in a new window
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
DigitizingTools
1.5.1
Discovery
2.5.7
FilterLayersAtOnce-master
1.0
Qaava
0.1.0
Qgis2threejs
2.6
qgis_resource_sharing
0.16.0
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.5
processing
2.12.99
sagaprovider
2.12.99
Supported QGIS version
New profile
Additional context
I have Postgresql tables and automatic transaction groups enabled. Since I have "NOT NULL" constraints without any default values in the child table I get errors from the database and can not insert any new features in the child table. A new project with repeated steps without checking (Force hide...) doesn't solve the problem. A restart of QGIS (or new profile) solves the problem. It seems that the setting gets global in the current session and can't get unset.
The text was updated successfully, but these errors were encountered: