Perspective Table Select All Button

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.

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.

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.