I'm trying to dynamically build a path to the resource for a particular Media object.
I worked out that I could concatenate "appres://resources/" along with some other letters which, strung together, point to one or another image. It's fairly rudimentary - it could be "EL_GR", and I'm just using a bunch of conditions to decide which letters to use.
When I put my formula into a label it correctly displays the full path to a valid resource, eg "appres://resources/EL_GR" - perfect.
Even better, I can put that formula into the 'Image' property of my media object - and it works! ...IN the desktop builder.
Once I publish, running on web or mobile, the media object no longer displays the actual image.
So to check it was still the same path on web and mobile, I placed a label and set its text value to simply 'EL_GR', directly referencing the media asset. On the app, it then displays the same resource path, as expected. So I published again, and all of a sudden the image now displays!
So in a sense I have a workaround - I can concat all my resources into a Label value and hide the label, and then everything is good.
But there's surely something wrong there for me to have to do this?