How does ignition execute queries in report scripting

The report won't be generated at all until the script data source runs completely. It will only run once per report request. It will still run even if the report design doesn't use @QueriedData@. It won't run again even if you reference @QueriedData@ multiple times.

It seems like you want scripted nested data. See this topic:

1 Like