# Perspective table cell color

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047>\
**Category:** Ignition\
**Created:** [August 18, 2021, 1:58pm UTC](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047 "2021-08-18T13:58:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [August 18, 2021, 2:31pm UTC](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047/2 "2021-08-18T14:31:36Z")

</div>

you have to set the style/value a “level” deeper, like so:  
the row here is helsinki, the column is jakarta  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bbcff8dc911538302e65c9359bc92ca8ab508acc.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/5/753126c1f7329374213b7c03b1a0281714eb66e3.png)

for the example code it would be something like: it can be a bit cleaner but this should get you started xd

```auto
			if value.getColumnName(col) == 'container_type':
				if value.getValueAt(row, col) == 'can':
					#style row to orange 
					row_style = style_orange
				elif value.getValueAt(row, col) == 'bottle':
					#style cel to green 					
					row_object['value']['container_type'] ={'value':row_value['container_type'],'style':style_green}

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047)._
