Hi. Happy new year to all!
I have a Table and I need to show only pictures.
I could do this from Table Customizer(image path list), but I don’t know how many columns I will have.
Is it possible to make in my script?
How?
Exemple:
if cell value = 1 image1.png
if cell value = 2 image2.png
I am going to assume the images you want to display are in the ImageManager on your gateway.
All you have to do is the following:
if colName == "MyImageColumn":
return {"iconPath":value}
If the image is not in the ImageManager, it is a little more difficult. Let me know if this is what you are after.
1 Like
It’s perfect for Power Table. Thanks!
But do you know how to make this in the Table?
You don’t. Use a power table. Is there a reason you would rather not use a power table?
1 Like
I will use a poer table. Thank you very much for your help.
For those who want to use a regular table, you can work with the “Image path column” and “Image path list” to translate keys to images.
https://docs.inductiveautomation.com:8443/display/DOC79/Table+Customizer