I want to save the data from Easy Chart using a timed Gateway Script once a day.
I’ve written a custom method on the Easy Chart;
self: A reference to the component instance this method is invoked on. This argument
is automatic and should not be specified when invoking this method.
# data = event.source.parent.getComponent(‘chrt01’)
# convert to csv
CSVdata = system.dataset.toCSV(data)
# write file
I’ve tried calling the method from the Gateway, but everything I’ve tried results in an error and I cannot call the method.
I had hoped to invoke the method by setting a memory tag, but I can’t bind the method to a tag.
Or a way to call the built in method would be good.
Any help greatly appreciated.