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

Filter in Linking Dialogue of Relation Editor Widget (Request in QGIS) #9210

Open
qgis-bot opened this issue Aug 23, 2024 · 0 comments
Open
Labels
3.40 Expressions Size 5 It will take between half a day and a full day
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#58448
Author: @signedav
QGIS version: 3.40

Filter in Linking Dialogue of Relation Editor Widget

PR Description:

While it's quite common to filter the parent entries in the drop down of the relation reference widget, in the relation editor one needed to enter the filter manually every time when linking children.

With this implementation one can configure a filter expression (with the scope of the target layer) on the relation editor configuration.

After that the link children dialogue is filtered accordingly.

Screencast.from.21.08.2024.09.43.10.webm

This resolves #58185

Some technical details:

  • We pass the expression to linkFeature in QgsAbstractRelationEditorWidget
  • The rest of the implementation (configuration etc.) are all done in the QgsRelationEditorWidget
  • QgsFeatureSelectionDlg::setFilterExpression became public

PS. You might have seen that after the filter still the form of the first feature of the unfiltered list is shown - this is a minor bug that existed before and has nothing to do with this implementation.

Commits tagged with [need-docs] or [FEATURE]

@github-actions github-actions bot added the 3.40 label Aug 23, 2024
@github-actions github-actions bot added this to the QGIS 3.40 milestone Aug 23, 2024
@selmaVH1 selmaVH1 moved this to This Sprint in Documentation Work Planning Jan 14, 2025
@selmaVH1 selmaVH1 added the Size 5 It will take between half a day and a full day label Jan 14, 2025
@selmaVH1 selmaVH1 moved this from This Sprint to In progress in Documentation Work Planning Jan 17, 2025
@selmaVH1 selmaVH1 moved this from In progress to Review in progress in Documentation Work Planning Jan 22, 2025
@selmaVH1 selmaVH1 moved this from Review in progress to This Sprint in Documentation Work Planning Jan 27, 2025
@selmaVH1 selmaVH1 moved this from This Sprint to In progress in Documentation Work Planning Feb 6, 2025
@selmaVH1 selmaVH1 moved this from In progress to This Sprint in Documentation Work Planning Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.40 Expressions Size 5 It will take between half a day and a full day
Projects
Status: This Sprint
Development

No branches or pull requests

2 participants