I have a power table that I would like to create a “Select All” button for.
I have done this with the plain Table component with the following scripting:
table = event.source.parent.getComponent(‘Table’)
rows = table.getRowsInViewOrder()
table.setRowSelectionInterval(0, len(rows) - 1)
However, I do not see a getRowsInViewOrder or setRowSelectionInterval in the PowerTable documentation.
Is there a way to set the selected rows in a Power Table component with Scripting?
Not via the documented functions, but it is possible if you go into the Java backend.
See Set multiple row selection on powertable
1 Like
Thank you! I tried to search the forum first, but didn’t see your post.
I found a more elegant solution:
table = event.source.parent.getComponent(‘Table’)
jide_table = table.getTable()
jide_table.selectAll()
6 Likes
I might also add that
table = event.source.parent.getComponent('Table')
jide_table = table.getTable()
jide_table.clearSelection()
will clear the selection.
1 Like
PGriffith
Split this topic
6
A post was split to a new topic: Select All Perspective Table