# Perspective Table Selected Data Only Shows Visible Data Columns

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 21, 2022, 3:18pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417 "2022-03-21T15:18:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![awaege1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awaege1/32/28922_2.png) [@awaege1](https://forum.inductiveautomation.com/u/awaege1)\
**Post date:** [March 21, 2022, 3:18pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417/1 "2022-03-21T15:18:25Z")

</div>

I am currently working on designing a queue management tool in which I am using the perspective table as an interface for the user to reorder rows, insert new ones, and delete existing ones.

To allow for inserts and re-ordering I am using a “priority” column in my data to determine ordering. The ordering itself is mostly done via stored procedures and triggers in the database and there is no need to show it in the actual table so I do not have a column showing it even though it is still part of the data in the table data property. Since I am using the priority of a specific row as a parameter in many of my procedure calls, I need to know this value and not just the row index in many of my procedure calls. However, the data field of the “selection” property for the table only seems to show columns that are visually included in the table.

This is not a huge issue since I can easily get around it but I was wondering if anyone knew why this was the case? I think it would be very valuable to have all data, not just visible data, shown in the “selection” property.

---

<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 21, 2022, 3:31pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417/2 "2022-03-21T15:31:18Z")

</div>

It seems to work for me as shown below.

 ![Table hidden column selection 1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/c/cc3310aadb9074199b4dd7ef4db6c8b26c28d4d9.png)

\*Figure 1. Make sure the column is named and `visible: false`.

 ![Table hidden column selection 2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/9/e9adbc8593bd04b35062777bd86fc9553134d1eb.png)

_Figure 2. The hidden column’s data shows up in the selection.data._

---

<div class="post-metadata">

**Author:** ![awaege1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awaege1/32/28922_2.png) [@awaege1](https://forum.inductiveautomation.com/u/awaege1)\
**Post date:** [March 21, 2022, 3:32pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417/3 "2022-03-21T15:32:26Z")

</div>

My mistake; by hidden I mean not actually included as a field in the column property.

---

<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 21, 2022, 3:37pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417/4 "2022-03-21T15:37:02Z")

</div>

That’s the problem then. (I’ve confirmed it on my test application.)

Add the column and set `visible: false` and you should be in business. Is there any reason this won’t work for you?

---

<div class="post-metadata">

**Author:** ![awaege1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awaege1/32/28922_2.png) [@awaege1](https://forum.inductiveautomation.com/u/awaege1)\
**Post date:** [March 21, 2022, 3:42pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417/5 "2022-03-21T15:42:59Z")

</div>

In this specific case, no. I can just do that. However, I have built tables where the columns are dynamically created via an analysis script in conjunction with the Sepasoft modules. In that instance adding them as invisible columns would be very annoying to do. As I mentioned before, it’s not something that is hard to get around, but rather just an unexpected behavior.

---

<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 21, 2022, 3:45pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417/6 "2022-03-21T15:45:47Z")

</div>

I think the behaviour is reasonable. The table is constructed of columns which are a subset of the result set. Anything not ‘columised’ can be considered irrelevant and therefore wouldn’t show up in the selection.

---

<div class="post-metadata">

**Author:** ![kelliott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kelliott/32/32947_2.png) [@kelliott](https://forum.inductiveautomation.com/u/kelliott)\
**Post date:** [March 21, 2022, 4:16pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-data-only-shows-visible-data-columns/57417/7 "2022-03-21T16:16:23Z")

</div>

I think the workaround of using that invisible column is going to be your best bet. Alternatively, if your data has a primary key or other unique ID, you could use that as the invisible column and then query your data property based on that unique ID in tandem with using the ‘selection.data’ property.

If you want to, I would recommend this as a good topic for a Feature Request, which you can submit at our [Features and Ideas](https://inductiveautomation.canny.io/ignition-features-and-ideas) page.
