# Modify Perspective table headers

**URL:** <https://forum.inductiveautomation.com/t/modify-perspective-table-headers/87462>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 18, 2024, 7:45am UTC](https://forum.inductiveautomation.com/t/modify-perspective-table-headers/87462 "2024-03-18T07:45:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrd](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jrd](https://forum.inductiveautomation.com/u/jrd)\
**Post date:** [March 18, 2024, 7:45am UTC](https://forum.inductiveautomation.com/t/modify-perspective-table-headers/87462/1 "2024-03-18T07:45:20Z")

</div>

Hi  
I would like to change the headers of columns in a perspective table.  
I would have thought that the following script would do the trick:

```auto
self.getSibling("tblTable").props.columns[0].header.title = "abc"

```

Can this be done? What am I missing?

Thanks

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 18, 2024, 9:48am UTC](https://forum.inductiveautomation.com/t/modify-perspective-table-headers/87462/2 "2024-03-18T09:48:10Z")

</div>

That works for me when I trigger it from a button in the same container as the table. Did you create the path using the Properties Browser button beside the script editor?  
What error are you getting?

---

<div class="post-metadata">

**Author:** ![jrd](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jrd](https://forum.inductiveautomation.com/u/jrd)\
**Post date:** [March 18, 2024, 11:18pm UTC](https://forum.inductiveautomation.com/t/modify-perspective-table-headers/87462/3 "2024-03-18T23:18:36Z")

</div>

Hi  
I get no error and the table header does not change.  
The value in .....props.columns[0].header.title does change to "abc" but the header of the column does not change. It remains as the value of the database column name from whence it is retrieved.  
I must be writing to the wrong place to change the header??

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 18, 2024, 11:37pm UTC](https://forum.inductiveautomation.com/t/modify-perspective-table-headers/87462/4 "2024-03-18T23:37:14Z")

</div>

Have you declared each of your `columns.X.field` properties? Make sure you put the exact column name from your database in there. Many of the column properties don't work if the data column isn't explicitly specified.

---

<div class="post-metadata">

**Author:** ![jrd](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jrd](https://forum.inductiveautomation.com/u/jrd)\
**Post date:** [March 19, 2024, 1:11am UTC](https://forum.inductiveautomation.com/t/modify-perspective-table-headers/87462/5 "2024-03-19T01:11:47Z")

</div>

That's it!  
weird  
Apparently you need to explicitly enter the 'field' attribute so that you can then edit the header.title

Thanks
