Perspective Table Multi-Row Selection: selectedRow as an Array
j
jake.thomas@intellicintegration.com
When selecting multiple rows from a table in Perspective, the selected 'data' property gets filled in with only the data being shown on the screen, and the 'selectedRow' property only gives an integer value of the row of the last row selected. If the selectedRow property was an array of the selected rows instead, then it could be used to tie into the data that was hidden from the user as well. (such as IDs to link to other data)
Log In
C
Christian de Bellefeuille
It's 2025, and the props.selection.data property is an array that corresponds to all selected rows. Except that the props.selection.selectedRow property still exists when it should be props.selection.selectedRows (with an s). The 2 don't work well together. When you assign an array of rows (exact copies of props.data) to props.selection.data, the rows in question are not shown as selected on the page.
J
John Maldonado
I need exactly this. My hope is this could also make it possible to select multiple rows through scripting by setting the selectedRow property to the desired rows to select.
T
Tim Johnson
This is an important one, as it is the only way to delete multiple selected rows from the table. Otherwise, the user is forced to select a single row in order to delete it, or pass the indices for other manipulation.