ApplyQuery() method
- Last UpdatedJun 19, 2024
- 1 minute read
Performs the query as specified by its parameters Alarm Query, From and To Priorities, State of alarms to query for. and the type of alarms to retrieve.
Syntax
Object.ApplyQuery(AlarmQuery, FromPriority, ToPriority, State, Type)
Parameter
AlarmQuery
The alarm query. For example: \InTouch!$System
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
State
Specifies type of alarms to show. For example, "UnAck" or message tag. Valid states are All, UnAck, or Ack.
Type
Specifies type of query for example, Historical (Historical alarms) or Summary (Summary alarms).
Example
The name of the control is AlarmViewerCtrl1.
#AlarmViewerCtrl1.ApplyQuery ("\InTouch!$System",100,900,"All", "Historical");