KB-32267: Alarm filter with a ComboBox.

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.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *