Hi guys, I know that the tag historian query is generate based on the start date and end date. Thus, I would like to ask that it is possible to let the user insert the start date and end date by themselves which I will provide two date input for the users as the image shown below then I will pass the actual value that select by the users to the tag historian query module.
Image above is the Tag Historian Query module which the parameters of start date and end date will get the actual value that the users selected.
If the above method is wrong may I know that what is the best way to do it ? Thanks in advance.
@tohhy-pm17, the first image is using Perspective and the second image looks to be using the Reporting module. Is this correct?
Is your aim to create a configurable report, or is it your wish to display historical data in Perspective (without the reporting module)?
Is not a wrong method, there are just configurable ways to call data, read the manual there can find good info
Tag History Bindings in Perspective - Ignition User Manual 8.0 - Ignition Documentation (inductiveautomation.com).
I don’t understand if I’m understanding your problem but if you want something like generating data to do something with it you should read this: system.tag.queryTagHistory - Ignition User Manual 8.0 - Ignition Documentation (inductiveautomation.com)
But if you want data in a component just use tag history binding in historical time range
And then just binding start-end date on those fields to your datetime inputs.
From your other thread on the subject.
For viewing the report on a screen this is pretty easy. You accomplish this by passing parameters from a perspective page exactly as you suggest. The default report starts with two parameters, StartDate and EndDate. You have to create objects in the params section of the report viewer component with the same names as your report parameters (as shown in the picture below). Bind these to any date source (there are several components that would work depending on your graphical preference), and eve…