Tim
1
How do I add a row to a table dataset?
table = event.source.parent.getComponent(‘Table’)
newRow = ["","",""]
system.dataset.addRow(table.data, newRow)
This does not error, but does not add a row. The table data is not bound to anything else.
Ignition 7.9.9
datasets are immutable, system.dataset.addRow
returns a new dataset with the additional row in it.
Tim
3
Thanks. Overlooked that.
table = event.source.parent.getComponent(‘Table’)
newRow = ["","",""]
table.data = system.dataset.addRow(table.data, newRow)