Next, create a script to filter for all alarms in the Alarm Status Table that have the associated data called ‘Production.’ Scripting allows you to use the 'filterAlarm' extension function specifically for filtering on associated data.
Enter the code below into the 'filterAlarm' script. You can filter on anything you want here, but in this example, we are going to filter on 'Production.'
group = alarmEvent.get("Group") if group == "Production": return True return False
Your script will look like the image below. This script will only display alarms matching the associated data for 'Production.' For every alarm matching ‘Production,’ it will return ‘True’ and show alarm results in the Alarm Status Table. If the associated data does not match ‘Production,’ it will return ‘False,’ and the Alarm Status Table will be empty. Note, when you're finished filtering on associated data, don't forget to disable your script.
Now the Alarm Status Table below shows all the alarms in the 'Production' group. Select an alarm and click the Search icon to see all the Details about the alarm.