Perform a GET-request to download an image from an image directory with a given key.
The key can be created by taking values from the value store.
This can be used to, for instance, have an image directory containing an image for each possible measurement result.
Before displaying the image, right after performing and uploading the measurement, this function is then called with the approproate key, for example
${persistentValues.SELECTED_LANGUAGE}_${temp.result.aox}
The first part takes a key SELECTED_LANGUAGE from the sub-store persistentValues. This would return the language selected by the user, for example EN-US.
The second part takes the key result from the temp-store, and extracts the aox-value from it. This could be something like 5.
The final image-key would then be EN-US_5. So if the image directory contains an entry with this key, the linked image is downloaded.
The result page would then simply display the image directory, and the app displays the downloaded picture instead.
Note that values are signalled by encapsulating them with ${} (note the dollar-sign before the opening bracket).