I have another “Newbie” question. I have searched previous topics with no success and I’m not even sure if what I’m trying to achieve is possible.
I am trying to combine a “string” with a tag value to create a file name when using ‘ExportCSV’.
I have created a tag called 'FileDate" = The current date in the format “yyyyMMdd”. I am trying to combine this tag with a string to create a new file name as the name of the saved file prompt when exporting to a csv.
In the script below, I would like the ‘FileName’ = Products_20180410
I appears that the “ExportCSV” requires a literal string as a file name. Is it possible to substitute a tag for the file name?
FileDate = system.date.now()
table = event.source.parent.getComponent(“Table”)
filePath = system.dataset.exportCSV(‘C:\SiteOverview\FileName’, 1, table.data)
if filePath != None: