Hi everyone,
Today I started working on exporting the content of a Table in Ignition Perspective to Excel via scripting.
As often happens, the more you progress, the more you want to improve the code and make it as flexible as possible. So I was wondering if a function to handle this type of need has already been developed, considering the complexity involved in building such a complete solution.
The requirements I’m trying to bring together into a single function are:
-
Handling input data as either JSON or Dataset
-
Converting date columns, since they are otherwise exported in Unix format
-
Exporting only visible columns
-
Determining which data to export — whether to use the filtered data or the full content of the table
I’ve searched the Ignition Exchange without success, but maybe I missed something. Either way, it might be worth considering implementing built-in export functionality directly in the component in the future.
Thanks and have a great day!