Select All Button - Power Table

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()


I might also add that

table = event.source.parent.getComponent('Table')
jide_table = table.getTable()

will clear the selection.

1 Like

A post was split to a new topic: Select All Perspective Table