I’m trying to transfer values from a parent feature to a child by using attribute(current_parent_feature,'Site')
as the default expression and then use the values for photo filenames.
I am trying to use current_parent_feature
over other solutions like attribute(get_attribute( ) )
as the layer name/id and relationship name/ids will change.
Currently the values from the parent are retrieved and displayed in child form correctly, but aren’t saved or accessible unless edited (i.e. add a space/hyphen). As a result they aren’t accessible by the photo naming expression either.
Is it possible to use current_parent_feature
in this way with Qfield?
The following shows the behavior I am experiencing.
I have also included a simplified QGIS project & packaged QField project to demonstrate.
I am using QGIS 3.36.2-Maidenhead for Windows, QField Sync 4.9.1 and Qfield 3.2.2-Congo on Android 14 (Samsung Active 4 Pro).
Imported from GitHub discussion by @cratcliff on 2024-06-11T03:51:49Z