# Perspective Table Column Naming

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208>\
**Category:** Ignition\
**Created:** [December 4, 2020, 2:26pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208 "2020-12-04T14:26:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.stevic](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@thomas.stevic](https://forum.inductiveautomation.com/u/thomas.stevic)\
**Post date:** [December 4, 2020, 2:26pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/1 "2020-12-04T14:26:03Z")

</div>

Using 8.0.16. When I drag a table into a view, I give each column a name that is displayed on the header. After I save the project and launch a session, the columns get rearranged and put in alphabetical order. After looking at the users manual and searching the web, I can find no information on this feature. My workaround was to rename the columns so the showed up in the correct order. Is there an way to turn this sorting feature off?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 4, 2020, 3:14pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/2 "2020-12-04T15:14:05Z")

</div>

I’m not able to replicate this in 8.0.16. Could you provide screenshots of the relevant properties with their values visible? Like this:  
 ![Screen Shot 2020-12-04 at 7.11.22AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a3c4e0bbb9d9052fb58ede5a987e89c816f61f87.png) ![Screen Shot 2020-12-04 at 7.11.35AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1a96b29b1d2a3b8252c76668a3b5cdcf53de2c3f.png)

And then also a screenshot of the Table in an active session, like this:  
 ![Screen Shot 2020-12-04 at 7.11.51AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bf31d02f1478f5b50cd878303618eb3b17f09c98.png)

Is it possible that you’re defining the title of the header without properly defining which data column should be in use for that column? It’s imperative that `column.field` match that of the desired column from your data source which should be displayed.

---

<div class="post-metadata">

**Author:** ![thomas.stevic](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@thomas.stevic](https://forum.inductiveautomation.com/u/thomas.stevic)\
**Post date:** [December 4, 2020, 5:40pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/3 "2020-12-04T17:40:56Z")

</div>

I did not go down to the columns property. What I did was to take the columns from the sample table and modified them to meet my needs. The columns I used were defined under the ‘data’ property. I ca show you the screen shots, but all is well now. Thank You.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 4, 2020, 7:02pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/4 "2020-12-04T19:02:00Z")

</div>

The data in the Table is not configured to specify column order - it will default to the order of the columns within the provided data, which happens to be alphabetical order (city, country, population). To control the order of the columns, you need to configure the columns individually.

---

<div class="post-metadata">

**Author:** ![thomas.stevic](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@thomas.stevic](https://forum.inductiveautomation.com/u/thomas.stevic)\
**Post date:** [December 4, 2020, 7:19pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/5 "2020-12-04T19:19:33Z")

</div>

I am rather confused. I scrolled down the the columns property. I modified everything I could find that refers to the column header. Using the sample table data, where are the columns ‘city’, ‘country’, and ‘population’ defined? I am assuming these fields are what is referred to as the header.

---

<div class="post-metadata">

**Author:** ![chandler](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@chandler](https://forum.inductiveautomation.com/u/chandler)\
**Post date:** [December 4, 2020, 7:46pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/6 "2020-12-04T19:46:20Z")

</div>

The order of the column configuration objects in table.props.columns is what determines the order in which the columns are displayed. So, if you wanted the city column to be first, the first object in table.props.columns needs to haves its field property set to ‘city’, then repeat this for each column in your desired order. if you want to change the title of the column, change the header[title] property in the column object.

---

<div class="post-metadata">

**Author:** ![chandler](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@chandler](https://forum.inductiveautomation.com/u/chandler)\
**Post date:** [December 4, 2020, 7:50pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/7 "2020-12-04T19:50:25Z")

</div>

![columns](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/3/33d601f685b3a72b1fe357d1aacc2f2770de5f76.png) ![table](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/e/fecf635fa87fe57fb66973c89103f654d7d282f4.png)

---

<div class="post-metadata">

**Author:** ![thomas.stevic](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@thomas.stevic](https://forum.inductiveautomation.com/u/thomas.stevic)\
**Post date:** [December 4, 2020, 8:07pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/8 "2020-12-04T20:07:45Z")

</div>

I know I am missing something very basic…

 ![Capture](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/7/776e7fdb1c8c00e577684956e0ac844c73200e81.png)

---

<div class="post-metadata">

**Author:** ![chandler](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@chandler](https://forum.inductiveautomation.com/u/chandler)\
**Post date:** [December 4, 2020, 8:11pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/9 "2020-12-04T20:11:25Z")

</div>

the ‘field’ value in the column object needs to be the same as one of the names of the columns in your underlying data set. since that example data set doesn’t have a column with the name ‘Dock Door Number’ the table doesn’t know which column in your dataset to pair with the column object with field=‘Dock Door Number’. trying setting the field property in each column object to ‘city’, ‘population’, and ‘country’

---

<div class="post-metadata">

**Author:** ![thomas.stevic](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@thomas.stevic](https://forum.inductiveautomation.com/u/thomas.stevic)\
**Post date:** [December 4, 2020, 8:37pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-naming/41208/10 "2020-12-04T20:37:15Z")

</div>

Ah, Ha! There are just to many items called ‘column’.  
Thank You Again
