Ignition 7.9 to 8.0 : queryHistory?

@PGriffith,
For the conversion from Ignition 7.9.10 of :

gatewayContext.getTagManager().queryHistory

with BasicTagHistoryQueryParams and BasicStreamingDataset

could you please provide an example for :

context.getTagHistoryManager().getTagHistoryProvider(<name>).createQuery(paths, controller)

I don’t understand how to achieve an historical query from gateway scope in Ignition 8 :sos:

HistoryQueryExecutor javadoc indicate that the result rows are writed to the streaming dataset, if possible but where can we provide a streaming dataset to the createQuery function or params ???

Ignition 7.9

gatewayContext.getTagManager().queryHistory()

is replaced in Ignition 8.0 by :

gatewayContext.getTagHistoryManager().queryHistory
1 Like