WinCC OA Reports: How do I pass a report parameter in dpQuery
Posted: Sat Dec 08, 2018 10:17 pm
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
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