# How do I customize a Power Table to change color of a row depending on PLC output

**URL:** <https://forum.inductiveautomation.com/t/how-do-i-customize-a-power-table-to-change-color-of-a-row-depending-on-plc-output/76824>\
**Category:** Ignition\
**Tags:** scripting, vision\
**Created:** [July 25, 2023, 1:28am UTC](https://forum.inductiveautomation.com/t/how-do-i-customize-a-power-table-to-change-color-of-a-row-depending-on-plc-output/76824 "2023-07-25T01:28:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [July 25, 2023, 6:52pm UTC](https://forum.inductiveautomation.com/t/how-do-i-customize-a-power-table-to-change-color-of-a-row-depending-on-plc-output/76824/5 "2023-07-25T18:52:37Z")

</div>

I had to do something similar. I had a PLC with a step counter and wanted to highlight the specific step the PLC said it was one. I configured my colors in a configureCell extension function. I had to use a little java magic to actually make it work though. You might find the thread of value

> [@What triggers configureCell on a powertable?](https://forum.inductiveautomation.com/t/what-triggers-configurecell-on-a-powertable/63454):
>
> I have a table that lists out a sequence of steps the PLC is going through. I want to highlight the current step that is being run and to grey out the previous steps and right now I have a custom property on my table that is bound to the PLC tag that says what step it is on like this and in my configureCell I have the following script - try: curStep = self.currentSequenceStep - 1 if rowIndex \< curStep: return {'background':'grey'} elif rowIndex == curStep: return {'back…

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-do-i-customize-a-power-table-to-change-color-of-a-row-depending-on-plc-output/76824)._
