We have the below script in the event handle of a button:
paths = event.source.parent.selectedLocation
startDate = event.source.parent.getComponent(‘Date Range’).startDate
endDate = event.source.parent.getComponent(‘Date Range’).endDate
query = system.tag.queryTagHistory(paths, startDate, endDate)
event.source.parent.query = query
which generates following error : Illegal character ‘[’ (Line 1 , Char 1)
When we replace the ‘query = system.tag.queryTagHistory(paths, startDate, endDate)’
with ’ query = [‘path/to/tag’]’ it runs fine.
am I doing something wrong in the syntax for the ‘query’ not to be dynamic?
Thanks