# Perspective Table, selecting multiple rows and getting each selected row number (index)?

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 3, 2026, 5:15pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835 "2026-06-03T17:15:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [June 3, 2026, 5:15pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835/1 "2026-06-03T17:15:56Z")

</div>

I have a perspective table with a json dataset, I want to remove rows that I have filtered from the dataset.

Removing one row is easy as the selectedRow property in selection is populated but when I have multiple rows selected, the selectedRow property only has the last row i clicked, not the list selected.

selection/data and filter/data properties only have the selected row values, not the row numbers

Is it possible to get the list of selected rows numbers from the table?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [June 4, 2026, 1:10pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835/2 "2026-06-04T13:10:42Z")

</div>

Is your data coming from a query or from a tag/static source?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 4, 2026, 1:28pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835/3 "2026-06-04T13:28:40Z")

</div>

You need to give your rows a unique identifier, even if it is hidden, then use that to remove the rows by id.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [June 4, 2026, 1:53pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835/4 "2026-06-04T13:53:21Z")

</div>

I'm reading an excel doc and populating a dataset into a table. I don't have any unique identifiers and I was hoping to use the row index if possible, i found another post that manually creates the index based on counting the rows. I might do that as I delete items from the table, the row numbers will change.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [June 4, 2026, 1:55pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835/5 "2026-06-04T13:55:46Z")

</div>

Right, the rows need to be enumerated so they have some sort of index to identify the rows to be removed explicitly. The implicit row numbers from the component would not be ideal.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 4, 2026, 3:10pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selecting-multiple-rows-and-getting-each-selected-row-number-index/115835/6 "2026-06-04T15:10:09Z")

</div>

Move the table data binding to custom property. Process the original data to add a column of row indices and provide that to the table's `props.data`.

> [@Selected rows rowindexes](https://forum.inductiveautomation.com/t/selected-rows-rowindexes/30539/6):
>
> I generally post-process the table source data with my toolkit selectStar() function to add a column containing the original data row index within the table data. As long as this is present in props.columns, usually hidden, this extra index will show up in rowData as well as filtered and sorted feedback properties.
