Filter

You can animate the Filter property of an embedded Alarms List so that a filter is applied to the Alarms List. This creates a criteria for the Alarms List so that it can only display those alarms that are a specific category, state, or belong to specific items or are in a defined severity range (see Filter an Embedded Alarms List).

To animate the Filter property of an embedded Alarms List, you need to use the following syntax:

<filter1>="<value1>"&<filter2>="<value2>"


Where:

Additional filters and values can be included by using the &. For example, <filter 3>="<value3>"&<filter4>="<value4>" and so on.

As long as the source of the Filter animation is a string value and uses the appropriate syntax, the Alarms List animation will be valid. So you can use registry keys to store different filters for an Alarms List, then use buttons to toggle the filters that are applied.

Further Information

Alarm Filter Syntax: see Alarm Filter String Syntax in the Geo SCADA Expert Guide to Alarms.

Example 1 - Filter by Point, Group, and Severity

The following entry filters the embedded Alarms List so that it only shows alarms for a point named 'AI1' that is stored in a Group named 'Main Site'. The Alarms List only includes alarms that are within the severity range 200-800 (the meaning of these values is defined in the server configuration - see Alarm and Event Severities in the Geo SCADA Expert Guide to Server Administration).

'Area="Main Site"&Source="AI1"&MinSeverity="200"&MaxSeverity="800"'

Example 2 - Apply Different Filters by Selecting a Button

In this example, the Mimic contains an Alarms List that displays alarms of every state by default. The Mimic also contains three buttons: Critical Severity, High Severity, and All Alarm States. These buttons are configured to use registry pick actions so that when selected, they change the filter that is applied to the Alarms List (so that the Alarms List shows only critical alarms, only high alarms, and alarms of every state respectively).

From Geo SCADA Expert 2019 onwards:

  • The location from which the REGISTRY function retrieves a value varies, depending on the type of client from which the function is triggered and the user that is logged onto that client. With ViewX and Virtual ViewX clients, the value is now stored in the registry of the User Account database item that is associated with the logged on user.
  • You can use the REGISTRY function if you are accessing the database as the Guest User or Super User, but with such users the value is only retained during the logged in session. These User Accounts do not retain and store the value.

For more information, see REGISTRY.

The embedded Alarms List has a Filter animation with this configuration:

REGISTRY('Severity', '')

This sets the Filter property of the Alarms List to use the filter that is contained in the registry key named Severity. The Severity registry key is written to when one of the Mimic's buttons is selected.

The Mimic's buttons are configured as follows:

  • Critical Severity—Configured to have a registry pick action with these settings: Name=Severity, Type=String, Value=MinSeverity="1000"&MaxSeverity="1000".
  • High Severity—Configured to have a registry pick action with these settings: Name=Severity, Type=String, Value=MinSeverity="667"&MaxSeverity="999".
  • All Alarm States—Configured to have a registry pick action with these settings: Name=Severity, Type=String, Value=MinSeverity="1"&MaxSeverity="1000".

When the Mimic is displayed in Run Mode, the Alarms List will respond to the buttons. When the Critical Severity button is selected, the Severity registry key has the following value written to it: MinSeverity="1000"&MaxSeverity="1000". As the source of the Filter animation for the Alarms List is the Severity registry value, the Alarms List is filtered to show only critical alarms.

Similarly, when the High Severity button is selected, the value MinSeverity="667"&MaxSeverity="999" is written to the Severity registry key and so the Alarms List only shows High severity alarms.

When the All Alarm States button is selected, the value MinSeverity="1"&MaxSeverity="1000" is written to the Severity registry key and the Alarms List shows alarms of every state.


Disclaimer

Geo SCADA Expert 2022