WinCC OA Reports: How do I pass a report parameter in dpQuery

Find and share HowTos to various installations / configurations!
Search

Post Reply
2 posts • Page 1 of 1
aleksandar.postolov
Posts: 19
Joined: Thu Sep 05, 2013 3:51 pm

WinCC OA Reports: How do I pass a report parameter in dpQuery

Post by aleksandar.postolov »

I am trying to get all alarms from a specific time range in a report (I am using SSRS). Is it possible to pass a report parameter in a Query?
The time in TIMERANGE needs to be replaced with something like @startTime, @endTime





SELECT ALERT '_alert_hdl.._value','_alert_hdl.._class' FROM '*.in.*.value' WHERE (_DP NOT LIKE "_rm_*") AND ('_alert_hdl.._value' == 1) AND ('_alert_hdl.._class' LIKE "*Stoerung*") TIMERANGE("01.01.2018 09:00:00", "18.12.2025 19:00:00",1,1)






Best regards
Aleks

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: WinCC OA Reports: How do I pass a report parameter in dpQuery

Post by leoknipp »

Is the query executed by a CTRL manager or are you using the Reporting manager in WinCC OA?
Which type of alert archiving is used in this project (standard archiving, RDB archiving)?

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
2 posts • Page 1 of 1