Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
japhias
Contributor II
Contributor II

Color by expression and variable

Dear all,

I have dashboard with a collection of pictures. In an extension I can visualize a preview of one picture by following expression:

=subfield(concat(image_name,';'),';',imagePreviewId)

With two buttons I can increase and decrease the imagePreviewId to scroll through the pictures.

The pictures are geo tagged, so that you can see the position on the map widget. There I want to color the image that is previewed in the extension by this code:

=if(image_name=subfield(concat(image_name,';'),';',imagePreviewId),'green','white')

Unfortunatley this is not working: If the imagePreviewId is 1 all points are green, does it have another value then all points are white.

Someone an idea for an adjustment?

0 Replies