TN IT236 How to Change the Query in the ActiveX Alarm Viewer Control in Wonderware InTouch WindowViewer
Last updated: March 6th, 2025Description
- Author: Benjamin Davis
- Published: March 6th, 2025
Details:
Description
This article from InSource shows How to Change the Query in the ActiveX Alarm Viewer Control in Wonderware InTouch WindowViewer with a script
- Author: Benjamin Davis
- Published: 09/29/2016
- Applies to: InTouch 2014 R2
Details
Use the .ApplyQuery dot field.
Example
#AlarmViewerCtrl1.ApplyQuery ("\InTouch!System",1,999,"All", "Summary");
#AlarmViewerCtrl1 is the control name of the alarm viewer
\InTouch!System is the alarm query
1 is the highest priority alarms wished to be seen (1 to 999)
999 is the lowest priority alarms wished to be seen (1 to 999)
All is the alarm states wished to be seen (All, Ack, Unack)
Summary is the query type wished to be seen (Summary, Historical)
Other examples...
#AlarmViewer.ApplyQuery ("\InTouch!Plant", 20, 100, "Unack", "Summary");
#HistAlarms.ApplyQuery ("\InTouch!Area3", 2, 500, "All", "Historical");