Question:
How can I implement an alarm filter by type (Alarm or Event) by using a ComboBox?
Solution:
To do so, you must first insert a ComboBox onto the same screen where the E3Alarm is. In this ComboBox, write the following script in OnStartRunning event:
Clear()
AddItem “Alarms”
AddItem “Events”
AddItem “Alarms and Events”
Then, create a new script in the same ComboBox‘s Change event:
Select Case Value
Case “Alarms”
Screen.Item(“E3Alarm1”).FilterType = 1
Case “Events”
Screen.Item(“E3Alarm1”).FilterType = 2
Case “Alarms and Events”
Screen.Item(“E3Alarm1”).FilterType = 3
End Select
Where:
E3Alarm1 is the existing E3Alarm object on the screen.