on 04-28-2014 6:46 PM
I am passing the values through a query template:
SET NOCOUNT ON
DECLARE @StartDate DateTime
DECLARE @EndDate DateTime
SET @StartDate = DATEADD(minute,60,'[Param.2]')
SET @EndDate = DATEADD(minute,60,'[Param.3]')
SET NOCOUNT OFF
SELECT TagName, DateTime, Value
FROM History
WHERE TagName IN ('[Param.1]')
AND wwRetrievalMode = 'Cyclic'
AND wwCycleCount = 500
AND wwVersion = 'Latest'
AND DateTime >= @StartDate
AND DateTime <= @EndDate
And declaring in the Transaction Details:
tagString FEN_01_AMIX_ASIDE.FLOw
StartDate 2014-04-21 10:00:00
EndDate 2014-04-22 12:00:00
But every time I change the dates in the url it does not show the new dates it keep on showing the above dates.
For instance if I do the following:
It still shows the content for
StartDate 2014-04-21 10:00:00
EndDate 2014-04-22 12:00:00
instead of
StartDate 2014-04-20 10:00:00
EndDate 2014-04-20 12:00:00
Hi Amr,
I doubt if single quotes has to be used.
Thanks,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amr,
I tried the above url, you are right it doesn't consider the start and end dates that is being passed. However when I tried using StartDate instead of SD and EndDate in place of ED, it works fine.
You can try the url given below:
Also which version of MII are you using? I tried the above url on MII 14.0 SP05
Regards,
Ria
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.