Using Query Favorites at Run Time
- Last UpdatedApr 11, 2022
- 3 minute read
Use the Query Favorites command on the Alarm Viewer control’s shortcut menu to quickly select an alarm query from a list of previously defined alarm queries. You can also create new named queries, edit an existing query, or delete an existing query.
Changes to an alarm query are not automatically applied to other Alarm Viewer controls using the same query. Deleting an alarm query does not automatically remove the query from other Alarm Viewer controls using the same query.
Note: For multi-line alarm queries appearing in the Alarm Viewer control, line separations appear as "garbage" characters. This does not affect the function.
To select an alarm query at run time
-
Right-click the Alarm Viewer control and then click Query Favorites. The Alarm Query dialog box appears.

-
Select the named query that you want to show in the list of currently defined queries.
-
Click OK. The Alarm Viewer control now shows alarm information retrieved by the query.
To add a new named query at run time
-
Right-click the Alarm Viewer control and then click Query Favorites.
The Alarm Query dialog box appears.
-
Click Add.
The Add Query dialog box appears.

-
Configure the query. Do the following:
-
In the Name box, type the name that you want to use to identify the query.
-
In the Query box, type the sets of InTouch alarm queries that you want to perform. You can specify one or more Alarm Providers and groups.
-
In the From Priority box, type the minimum alarm priority value (1 to 999).
-
In the To Priority box, type the maximum alarm priority value (1 to 999).
-
Click the Alarm State arrow and select the alarm state that
(All, Ack, Unack) you want to use in the alarm query. -
In the Display Type area, select Summary or Historical for the type of records you want to query.
-
-
Click OK to close the Add Query dialog box.
-
Click OK in the Alarm Query dialog box to add the query to your favorites.
To modify an existing named query at run time
-
Right-click the Alarm Viewer control and then click Query Favorites.
The Alarm Query dialog box appears.
-
Select the named query that you want to modify in the list of currently defined queries.
-
Click Modify.
The Modify Query dialog box appears.
-
Make the necessary modifications and then click OK.
-
Click OK in the Alarm Query dialog box.
To delete an existing named query at run time
-
Right-click the Alarm Viewer control and then click Query Favorites.
The Alarm Query dialog box appears.
-
Select the named query that you want to delete in the list of currently defined queries.
-
Click Delete. When a message appears, click Yes.
-
Click OK in the Alarm Query dialog box.