# Table - Power Table

**URL:** <https://forum.inductiveautomation.com/t/table-power-table/18504>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [June 18, 2018, 7:12am UTC](https://forum.inductiveautomation.com/t/table-power-table/18504 "2018-06-18T07:12:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![n.meluccio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/n.meluccio/32/4858_2.png) [@n.meluccio](https://forum.inductiveautomation.com/u/n.meluccio)\
**Post date:** [June 18, 2018, 7:12am UTC](https://forum.inductiveautomation.com/t/table-power-table/18504/1 "2018-06-18T07:12:07Z")

</div>

Mornin’ Sirs,

i would like to ask if it is possible to color a single table cell based on a boolean tag status.  
We need to check user inputs and return a yellow background on this cell if its value is incorrect.

Thanks in advance,  
N.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [June 18, 2018, 9:04am UTC](https://forum.inductiveautomation.com/t/table-power-table/18504/2 "2018-06-18T09:04:49Z")

</div>

Yes, just right-click on the power table, select _Scripting…_ and put your code in the _configureCell_ Extension Function.

Just remember that this function runs for every cell in the table, so your code will have to have some way of identifying the cell of interest, maybe by column name and row number for example.

---

<div class="post-metadata">

**Author:** ![n.meluccio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/n.meluccio/32/4858_2.png) [@n.meluccio](https://forum.inductiveautomation.com/u/n.meluccio)\
**Post date:** [June 18, 2018, 10:02am UTC](https://forum.inductiveautomation.com/t/table-power-table/18504/3 "2018-06-18T10:02:24Z")

</div>

Sure, i got how to identify the cell of interest, but i wanted to know if there are some ways to color that.

Eg: cell.backgroundColor(…) or whatever?

Thanks again,  
N.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [June 18, 2018, 10:11am UTC](https://forum.inductiveautomation.com/t/table-power-table/18504/4 "2018-06-18T10:11:26Z")

</div>

In _configureCell_ you just return a dictionary containing the desired attribute(s) e.g.

```auto
if incorrect:
    return {'background': 'yellow'}
else:
    return {'background': 'white'}

```
