Export Table created by SQL Query

Is there a quick and easy way to put a link on a page to download a table, kinda like the easyh chart does?

1 Like

Add a button to the screen and put this script in the actionPerformed event handler:

table = event.source.parent.getComponent('Table')
system.dataset.exportExcel("tableExport",True,table.data)

You can also use these:
system.dataset.exportCSV
system.dataset.exportHTML

1 Like

Awesome!! Thanks!

Thanks guys, I ended up using this, worked great for me!