Clearing table contents from a script

Is there a quick and easy way to clear out the contents of a Table via a script that does not include using the deleteRow command for every row in the table?

Absolutely. This little script does it:

dataset = system.dataset.toDataSet([],[[]])
event.source.parent.getComponent(‘Table’).data = dataset

1 Like