Table Hide a Row

Is there a way to hide a row or set the row height to zero on either the Table or Power Table component?

1 Like

Good Afternoon,
I accomplished the task with the following syntax:

self.getTable().setRowHeight(rowIndex,0)

This is done within the Powertable component by utilizing the extension functions, which can be reached by right clicking the component and selecting “scripting” which will show a list of available functions to setup. For this example I used the double click extension function (OnDoubleClick) which we will use to change a selected rows height to 0. For these changes to stay the tables polling mode will need to be off and use a “Refresh” button to renew the screen. Keep in mind if you wanted to assign a button or another component to complete the action of hiding the code will resemble the following:

rows = event.source.parent.getComponent(‘PowerTable’).getSelectedRow()

event.source.parent.getComponent(‘PowerTable’).getTable().setRowHeight(rows,0)

2 Likes

Thank you, that is exactly what I needed.