Hello all,
If possible, I would like to export data from a named query to an existing Excel workbook.
If not possible, I would like to export the same data to a new Excel workbook.
I have been playing with the system.dataset.toExcel
function, but have not been able to get it to write a file to the specified directory.
This code system.file.writeFile(filePath, spreadSheet)
is called from a button event, and presumably it runs the code, because I have a test line afterwards that fires.
I did ask about an error I had earlier while attempting to do this, which I had tagged my question onto this thread: https://forum.inductiveautomation.com/t/perspective-table-excel-report/70598/4
Any ideas why Ignition will not write/create this file? I also created the file manually, thinking maybe it had to be there already, but no, no data was added to the file.
I even changed queries, just in case...