Skip to content

@current_parent_value function not working in parent-child table relationships #4387

@tomasMizera

Description

@tomasMizera

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

  1. Set up a project with two tables linked via a parent-child (1:N) relationship
  2. In the child table form, use @current_parent_value('field_name') to reference a field from the parent table
  3. 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

  • App: Mergin Maps Mobile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions