How to format nested expressions in Set Property Activity from query results?
I'm trying to get a value from a layer's query results. The field to-be-read should be retrieved from a value. Is it possible to do something like this expression and how should it be formatted? Thanks in advance!
=$query1.features[0].attributes.$valueQueryField.results
0
-
Yes! Use brackets to signify a computed property, i.e.
=$query1.features[0].attributes[$valueQueryField.results]
You can daisy chain this syntax by the way.
=$query.features[$forEachFeature.pass].attributes[$valueQueryField.results][$valueSubproperty.results]
1 -
Ah, thanks a lot. I tried various formats with no result, but this format works great!
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer