You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
The text was updated successfully, but these errors were encountered:
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:
linkFeature
inQgsAbstractRelationEditorWidget
QgsRelationEditorWidget
QgsFeatureSelectionDlg::setFilterExpression
became publicPS. 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]
The text was updated successfully, but these errors were encountered: