Report script data source

Hello,
In reporting module, I have the following parameters: StartDate, EndDate and TagPath.
I am trying to use a script data source to call function system.tag.queryTagHistory(data[TagPath],StartDate,EndDate), but in report designer, this dataset has None and timestamp keys, and so, nothing returns to the report. Am i missing something?
Thank you!

Post the exact code you're using, as preformatted text, so we can see what you're actually doing.

hello,
this is the script data source for the report:

def updateData(data, sample):

	end = data["EndDate"]
	start = data["StartDate"]

	data["myReturn"] = system.tag.queryTagHistory([data["TagPath"]], start, end, intervalHours = 1)

TagPath is a report parameter. It is passed to the report in designer, same with EndDate and StartDate.

Edit your default value expressions.

1 Like