Replies: 7 comments 4 replies
-
|
Thank you for reporting this, @cratcliff We have made a couple of improvements in this area, could you check if this is still an issue with QField 3.3? |
Beta Was this translation helpful? Give feedback.
-
|
@cratcliff , thanks for providing a test project. A fix to the issue raised in this discussion has been found. You can test the APKs that will appear here to confirm it works as expected: #5356 |
Beta Was this translation helpful? Give feedback.
-
|
@cratcliff, did you test the APK and can you confirm that |
Beta Was this translation helpful? Give feedback.
-
|
Problem solved, thanks to @FelixHinckel, see https://community.qfield.org/t/using-current-parent-feature-in-filename-expression-not-working/1379 |
Beta Was this translation helpful? Give feedback.
-
|
Is @current_parent_feature expected to work in photo naming expressions in QField, or is it currently limited to form display only? |
Beta Was this translation helpful? Give feedback.
-
|
When using attribute(@current_parent_feature, 'field') as a default value in a child layer, should the value be persisted automatically on save, or is manual editing required for it to be stored? |
Beta Was this translation helpful? Give feedback.
-
|
For photo naming, you can use the fonction, rater than the variable : I use it as a default value for a field in the child layer, and then use that field in photo naming |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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_featureover other solutions likeattribute(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_featurein 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).
Beta Was this translation helpful? Give feedback.
All reactions