# Image in Table Cell

**URL:** <https://forum.inductiveautomation.com/t/image-in-table-cell/16442>\
**Category:** General Discussion\
**Created:** [December 31, 2017, 8:10pm UTC](https://forum.inductiveautomation.com/t/image-in-table-cell/16442 "2017-12-31T20:10:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniosantos\_ccb](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@antoniosantos\_ccb](https://forum.inductiveautomation.com/u/antoniosantos_ccb)\
**Post date:** [December 31, 2017, 8:10pm UTC](https://forum.inductiveautomation.com/t/image-in-table-cell/16442/1 "2017-12-31T20:10:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [January 1, 2018, 9:01am UTC](https://forum.inductiveautomation.com/t/image-in-table-cell/16442/2 "2018-01-01T09:01:10Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![antoniosantos\_ccb](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@antoniosantos\_ccb](https://forum.inductiveautomation.com/u/antoniosantos_ccb)\
**Post date:** [January 2, 2018, 10:40am UTC](https://forum.inductiveautomation.com/t/image-in-table-cell/16442/3 "2018-01-02T10:40:30Z")

</div>

It’s perfect for Power Table. Thanks!  
But do you know how to make this in the Table?

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [January 2, 2018, 6:06pm UTC](https://forum.inductiveautomation.com/t/image-in-table-cell/16442/4 "2018-01-02T18:06:57Z")

</div>

You don’t. Use a power table. Is there a reason you would rather not use a power table?

---

<div class="post-metadata">

**Author:** ![antoniosantos\_ccb](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@antoniosantos\_ccb](https://forum.inductiveautomation.com/u/antoniosantos_ccb)\
**Post date:** [January 2, 2018, 6:24pm UTC](https://forum.inductiveautomation.com/t/image-in-table-cell/16442/5 "2018-01-02T18:24:09Z")

</div>

I will use a poer table. Thank you very much for your help.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [January 3, 2018, 8:44am UTC](https://forum.inductiveautomation.com/t/image-in-table-cell/16442/6 "2018-01-03T08:44:41Z")

</div>

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](https://docs.inductiveautomation.com:8443/display/DOC79/Table+Customizer)
