Is there a way to hide a row or set the row height to zero on either the Table or Power Table component?
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)
Thank you, that is exactly what I needed.
Is there any intention of implementing a similar function into the tables in perspective?
I think thatâs a different topic and that you should start a new thread.
When youâre doing that you should explain where the data is coming from and why the row canât be deleted at source - either by SQL query or script transform.