# Customizing Perspective Table and json scripting help

**URL:** <https://forum.inductiveautomation.com/t/customizing-perspective-table-and-json-scripting-help/62348>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 27, 2022, 1:30pm UTC](https://forum.inductiveautomation.com/t/customizing-perspective-table-and-json-scripting-help/62348 "2022-07-27T13:30:56Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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 22, 2022, 2:50pm UTC](https://forum.inductiveautomation.com/t/customizing-perspective-table-and-json-scripting-help/62348/13 "2022-08-22T14:50:35Z")

</div>

also this would be easier

> [@Perspective table cell color](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047/4):
>
> it might be easier to use “getColumnNames()” instead of “getColumnCount()”, so you dont have to worry about sorting indexes
> 
> this:
> 
> ```auto
> for col in value.getColumnNames():
> ....
> if col == 'LED':
> ...
> row_object[col]=cell_object
> 
> ```
> 
> instead of:
> 
> ```auto
> for col in range(value.getColumnCount()):
> ...
> value.getColumnName(col) == 'LED'
> ...
> row_object[value.getColumnName(col)]=cell_object
> 
> ```

---

_[View the full topic](https://forum.inductiveautomation.com/t/customizing-perspective-table-and-json-scripting-help/62348)._
