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?