I know there are already some answers on the forum to trigger a sorting of a power table on init or button press. This works well enough. What I cannot seem to figure out is how to “unsort” a power table.
I have a toggle that swaps a power table from being “sortable” and “unsortable” and need to clear any “sort selected” columns when the swap to “unsortable” happens. So far, I have tried the following code, which causes erratic behavior of the sorting function (probably because I have misunderstood the intersection of the JTable and JideTable objects). The JideTable has some warnings about not using the JTable sorter in their documentation, but it appears that the Power Table is using the JTable sorting. I can’t ‘sort’ it out (pun intended).
jTable = tableComponent.getTable() jTable.setAutoCreateRowSorter(False) jTable.unsort() jTable.setAutoCreateRowSorter(True)
I’ve also tried the method
jTable.getRowSorter().setSortKeys(None). But the