# Color rows and cells of a perspective table

**URL:** <https://forum.inductiveautomation.com/t/color-rows-and-cells-of-a-perspective-table/97300>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 16, 2024, 9:34am UTC](https://forum.inductiveautomation.com/t/color-rows-and-cells-of-a-perspective-table/97300 "2024-10-16T09:34:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pietro\_Di\_Lauro](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@Pietro\_Di\_Lauro](https://forum.inductiveautomation.com/u/Pietro_Di_Lauro)\
**Post date:** [October 16, 2024, 9:34am UTC](https://forum.inductiveautomation.com/t/color-rows-and-cells-of-a-perspective-table/97300/1 "2024-10-16T09:34:52Z")

</div>

The objective is to color a cell of a row, of a perspective table.  
I color the rows according to particular conditions, and all this works fine.

In the same script, however, I would like to add that the "error" cell is colored red if the value is \> a certain number.

the script I use to color the rows is the following:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/3/e30a6e5c67820b624fb829e2b3109933629e0ea3.png)

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [October 16, 2024, 10:16am UTC](https://forum.inductiveautomation.com/t/color-rows-and-cells-of-a-perspective-table/97300/2 "2024-10-16T10:16:46Z")

</div>

You may try one of the ways @danieltalbot explained here:

> [@Cell color related to content in Ignition Perspective](https://forum.inductiveautomation.com/t/cell-color-related-to-content-in-ignition-perspective/89269/8):
>
> Hope this helps. [[How to Dynamically Style Individual Table Cells] ](https://www.youtube.com/watch?v=OFxTmLNGQWk)

works great.

---

<div class="post-metadata">

**Author:** ![Pietro\_Di\_Lauro](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@Pietro\_Di\_Lauro](https://forum.inductiveautomation.com/u/Pietro_Di_Lauro)\
**Post date:** [October 16, 2024, 10:49am UTC](https://forum.inductiveautomation.com/t/color-rows-and-cells-of-a-perspective-table/97300/3 "2024-10-16T10:49:33Z")

</div>

Thank you very much, the video is really very useful, but my goal is to color on a colored row, a cell!

That is, the script I posted works well to color an entire row, of this colored row, I would like to color only one cell of it differently.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [October 16, 2024, 10:58am UTC](https://forum.inductiveautomation.com/t/color-rows-and-cells-of-a-perspective-table/97300/4 "2024-10-16T10:58:39Z")

</div>

That works for styling single cells depending on the value. I don´t know any other way to do that.
