Skip to main content
InSource Solutions

TN IT272 How to use the query filter favorites file to change an Alarm query at Runtime through the Alarm DB View Control in InTouch

Count5.JPGInSource_Logo_Transparent (1).png

 

Description

 

This article from InSource shows how to use the Query Filter favorites file with the Alarm Viewer Control

  • Author: Ernest Lee
  • Published: 05/08/2017
  • Applies to: Intouch v8 and higher

Details

1. Double-Click the Alarm Viewer Control and take note of the control name (AlarmViewerCtrl3), we will need this information later. 

0_name_of_control.png

2. Next click the Query tab and type a name for the Query Favorites File which will get saved to the application folder or you can specify a path.

1_alarm_db_view_query_fav.png

3. Click Edit Query Favorites and click Add to create a new Query.

2_add_new_alarm_filter.png

4. Type the name of the query and for the query I am choosing 1 of my alarm groups called Mixers. 

3_Add_query.png

5. I will add another query for the sub alarm group called HeatEx (Note the query format is \intouch!alarmgroupname)

4_add_query.png

6. Now you have the default query and the 2 ones recently added.

5_final_query_window.png

7. Now in runtime we can toggle between the two filters to focus our alarm results.

6_right-click.png

8. During Runtime, right-click on the Alarm Viewer and choose Query Favorites.

7_query_favorite_options.png

9. Choose the saved query you want to use and it will filter the results accordingly. 

wwalmdb2.JPG8_-_query_results.png

10. I also created a Button with a Pushbutton action script set to #AlarmViewerCtrl3.SetQueryByName("Query1");

11. This script is #nameofviewercontrol.setquerybyname("nameofqueryfavorite");

9_push_button_script.png

12. Now you can use the button to run the query favorite w/out having to right-click on the control.