Skip to main content
InSource Solutions

TN Appsvr230 How to use the query filter favorites file to change an Alarm query at Runtime through the ArchestrA alarm client

InSource_Logo_Transparent.png

Description

 

This article from InSource walks through using the Query Filter favorites file with the ArchestrA alarm client

  • Author: Joseph Hefner
  • Published: 3/23/2017
  • Applies to: InTouch 2012 or later

Details

 

Step 1)  Open an ArchestrA symbol with the alarm client in it and double click on the AlarmClient control:

P0.jpeg

Step 2) Click Query Filters and click the "+" button to add a new filter:

P1a.jpeg

Step 3) Give a name to the new favorite selection and add the desired group and provider name.  You can also specify additional criteria if desired:

P2.jpeg

 

P3.jpeg

 

P4.jpeg

 

P5.jpeg

 

P6.jpeg

Step 4)  Follow the same steps to create additional filter options:

P7.jpeg

 

Step 5)  Specify the criteria for the default filter:

P8.jpeg

 

 

Step 6) Make a way to change the filters programmatically.  In this example, I have made a button for each of the three different selections:

P9.jpeg

Step 7)  Write a script for each button to switch to the correct selection when the button is clicked:

P10.jpeg

 

P11.jpeg

 


P12.jpeg

 

P13.jpeg

 

P14.jpeg

 

P15.jpeg

Step 8)  Test the functionality in WindowViewer:

P16.jpeg

P17.jpeg

P18.jpeg