Value-list in value-relation stays empty within a 1:n-relation when using current_parent_value('parent_field') #40194
Labels
Expressions
Related to the QGIS expression engine or specific expression functions
Feedback
Waiting on the submitter for answers
Relations
The value-list in value-relation stays empty within a 1:n-relation when using current_parent_value('parent_field') in the first step when creating a new child-feature (which is not an expected behaviour) but is filled as expected after confirming a empty value-list.
Some sceenshots and the attached-sample-project shows more than thousand words...:
I set up a sample project with following settings:
The child-features-layer is empty.
The relation is set up like:
(Step 0: Create some parent-features and save them because of #40129)
When editing the parent-feature to add child-features (Step 1: Identify; Step 2: Add new feature) the avaliable value-list stays empty (Step 3)
After pressing OK (Step 4) the value-list is filled now as expected (Step 5).
This causes following problems:
Problem 1: In step 3/4 the User thinks, something is set up wrong/he may think not to be able to create a new feature, but step 5 shows, all iss set up well and creation of child-features is possible
Problem 2: Unnecessary steps to create a feature.
Sample project:
current_parent_value_test_project.zip
QGIS 3.16.0
The text was updated successfully, but these errors were encountered: