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
[attribute form] Add parent feature scope when adding/editing a child feature through the relation editor widget #57271
base: master
Are you sure you want to change the base?
Conversation
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
python/PyQt6/core/auto_generated/vector/qgsvectorlayertools.sip.in
Outdated
Show resolved
Hide resolved
… through the relation editor widget
…gh the relation editor widget
|
||
/** | ||
* Sets an additional expression context scope to be made available when calculating expressions. | ||
* \param scope additional scope |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* \param scope additional scope | |
* \param scope additional scope. Ownership is not transferred and a copy will be made. |
Description
This PR provides a useful current_parent_* scope when adding and editing child features through the attribute form's relation editor widget.
For feature addition, it comes in extremely handy when the parent feature is also being added. In this case, the parent feature itself can't be retrieved (since it hasn't even been added to the edit buffer), nor can its attributes or geometry.
Fixes #48915.