Add image to dataset

hatra
edited February 11, 2022 in Analytics #1

Hi,
I am looking for a way to add 3 images dynamically into the report table.
and be able to apply condition to the image cell to select the right image from the field
ie image1.jpg
image2.jpg
image3.jpg
if row[country] == "france"
{
"image1.jpg"
}
else if
row[country] == "usa"
{
"image2.jpg"
}
else
"image3.jpg"

thanks

Comments

  • There are many ways to dynamically display different images. Attached is an example of one of the methods.

    Warning No formatter is installed for the format ipb
  • Thanks Jeff,
    I have applied this solution however I was wandering if there is a dynamic why to do that , meaning not having all images on the table but keeping images stored in dataset or somewhere else so when report runs it picks the relevant image ? one other thing I though of but not sure how to apply is to have a data element for each image and use that on data expression with some logic to presented accordingly?
    thanks

  • Data sets cannot store images as images. Images can exist in a data set as a blob data type or a base64 encoded string. Another option is to put the image files on the server as external resources and use the expression builder in the image editor window to write logic to choose the correct file to display.

    Warning No formatter is installed for the format ipb