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

No update of virtual fields considering layer dependencies #43901

Closed
signedav opened this issue Jun 24, 2021 · 0 comments · Fixed by #46167
Closed

No update of virtual fields considering layer dependencies #43901

signedav opened this issue Jun 24, 2021 · 0 comments · Fixed by #46167
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers Forms

Comments

@signedav
Copy link
Contributor

signedav commented Jun 24, 2021

When editing features on a layer the current opened feature's layer is depending on (with layer dependencies), virtual fields considering these values are not updated "on the fly".

Does not work on single forms.

Not sure if we can call it a bug, but I think it's an expected behavior from virtual fields.

  • Having a reference with parent "wald" and child "baum"
  • Having a layer dependency on layer "wald" for layer "baum"
  • Having a relation editor widget on the "wald" form
  • Having a virtual field on the "wald" form with the expression relation_aggregate( 'bauminwald','count', "baum_id") and alias "counting children"

virtual_fields_depending_childs

This works on attribute table form:
attr_table_update
(but leads to issue: #43902)

This is probably related to #43900

QGIS and OS versions

  • Master 870945c and 3.16 LTR
  • Ubuntu 20.04

Demoproject:
datallama.zip

@signedav signedav added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jun 24, 2021
@gioman gioman added Forms Data Provider Related to specific vector, raster or mesh data providers labels Jun 24, 2021
@signedav signedav changed the title On the fly update of virtual fields considering layer dependencies No update of virtual fields considering layer dependencies Jun 24, 2021
domi4484 added a commit to domi4484/QGIS that referenced this issue Oct 4, 2021
domi4484 added a commit to domi4484/QGIS that referenced this issue Nov 16, 2021
domi4484 added a commit to domi4484/QGIS that referenced this issue Nov 23, 2021
domi4484 added a commit to domi4484/QGIS that referenced this issue Dec 9, 2021
manisandro pushed a commit to kadas-albireo/QGIS that referenced this issue Dec 17, 2021
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! Data Provider Related to specific vector, raster or mesh data providers Forms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants