I have a table in Perspective where data is bound to an array at view.custom.tableData
which contains records formatted like the snippet at the end.
Do I need to convert this dataset type before I can use system.dataset.toExcel()
? I'm getting nothing from this.
Button onActionPerformed:
def runAction(self, event):
dataset = self.view.custom.tableData
download = system.dataset.toExcel(1, dataset, "All")
system.perspective.download("Inventory.xlsx", download)
Example record in dataset view.custom.tableData
...
[
{
"IsWS": false,
"Online": true,
"NameRegister": 101,
"nodeID": "001",
"deviceID": "Trk01"
}
...
]