Description
The @current_parent_value function does not work correctly when used in a child table form to retrieve a value from a parent table in a parent-child relationship between two tables.
Steps to Reproduce
- Set up a project with two tables linked via a parent-child (1:N) relationship
- In the child table form, use
@current_parent_value('field_name') to reference a field from the parent table
- Open the child form from the parent feature
Expected Behavior
The @current_parent_value expression should resolve and return the correct value from the parent feature.
Actual Behavior
The function does not return the expected value from the parent table.
Workaround
Using the aggregate() function can serve as a workaround, but native support for @current_parent_value would be the preferred solution.
Environment
Description
The
@current_parent_valuefunction does not work correctly when used in a child table form to retrieve a value from a parent table in a parent-child relationship between two tables.Steps to Reproduce
@current_parent_value('field_name')to reference a field from the parent tableExpected Behavior
The
@current_parent_valueexpression should resolve and return the correct value from the parent feature.Actual Behavior
The function does not return the expected value from the parent table.
Workaround
Using the
aggregate()function can serve as a workaround, but native support for@current_parent_valuewould be the preferred solution.Environment