Power Table rows shifting

Hi All,

I m using power table includes 3 rows.
After clicking button, i want to copy 3rd row to 2nd row and 2nd row to 1st row.
3rd row becomes empty which i will write from outside

I believe this approach would work:

blankRow = []
table = event.source.parent.getComponent('Power Table')
table.data = system.dataset.deleteRow(table.data, 0)
for column in range(table.data.columnCount):
table.data = system.dataset.addRow(table.data, blankRow)

Rather than copying all of the rows up, it simply deletes the first row and adds a blank row to the bottom

1 Like