# Perspective Table Select All Button

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-select-all-button/30918>\
**Category:** Ignition\
**Created:** [December 24, 2019, 4:19pm UTC](https://forum.inductiveautomation.com/t/perspective-table-select-all-button/30918 "2019-12-24T16:19:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bebel](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bebel](https://forum.inductiveautomation.com/u/bebel)\
**Post date:** [December 24, 2019, 4:19pm UTC](https://forum.inductiveautomation.com/t/perspective-table-select-all-button/30918/1 "2019-12-24T16:19:13Z")

</div>

Is there a way to script the selection of all rows in the table? It is simple enough to select a single row from a button. I can even populate the selection.data from table.data but that does not highlight the rows to show that they are selected to the user. I have thought about manipulating selection.data and scripting the color of the rows but I thought I would check to see if there is a more simple way to select more than one row from a button first.

---

<div class="post-metadata">

**Author:** ![dwb](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dwb](https://forum.inductiveautomation.com/u/dwb)\
**Post date:** [December 12, 2022, 1:37pm UTC](https://forum.inductiveautomation.com/t/perspective-table-select-all-button/30918/2 "2022-12-12T13:37:27Z")

</div>

Hi,  
I'd like to do the same. Select all the rows in a table through a script. Is there a way to do so? Thanks.

---

<div class="post-metadata">

**Author:** ![bebel](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bebel](https://forum.inductiveautomation.com/u/bebel)\
**Post date:** [January 10, 2023, 9:17pm UTC](https://forum.inductiveautomation.com/t/perspective-table-select-all-button/30918/3 "2023-01-10T21:17:49Z")

</div>

What I ended up doing was to just skip the selection of the rows. In my case, the reason for selecting all of the rows was to do something, like update data in the rows. All I did was to skip that step and have the script in the button do whatever that thing is I wanted to do, using the dataset from the table.
