Programmatically Change The Filter in The FactoryTalk Alarm and Events Summary Object in FactoryTalk View SE
Programmatically Change The Filter in The FactoryTalk Alarm and Events Summary Object in FactoryTalk View SE
Question
How can I programmatically change the Filter in the FactoryTalk Alarm and Events Summary object in FactoryTalk
View SE?
Environment
FactoryTalk View local (Standalone)
FactoryTalk View network (Site Edition)
FactoryTalk Alarm and Events
Answer
The Filters can be selected at Runtime programmatically by using the FactoryTalk Alarms and Events Summary
Object Method
VOID Filtername(String)
To do this
1. Add the FactoryTalk Alarm and Event Summary object to a display and expose it to VBA.
2. Click Properties and then select the Display Filters tab
3. Set up the Filters as required.
4. In VBA for the event write the code to set the Filter name
For example to set the Filter named "Filter1" by clicking on a Command Button the
following code would be used
AlarmEventSummary1.FilterName = "Filter1"
End Sub
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/731118 1/2
14/11/2018 731118 - Programmatically change the Filter in the FactoryTalk Alarm and Events Summary object in FactoryTalk View SE
The attached apa file has an example of Filter selection with command buttons.
When the file is extracted it will prompt for a passphrase, leave this blank., there is no passphrase.
Attachments
Filter_Selection_Example.apa (/ci/fattach/get/1099900/0/filename/Filter_Selection_Example.apa) (1.06
MB)
DISCLAIMER
This knowledge base web site is intended to provide general technical information on a particular subject or
subjects and is not an exhaustive treatment of such subjects. Accordingly, the information in this web site is not
intended to constitute application, design, software or other professional engineering advice or services. Before
making any decision or taking any action, which might affect your equipment, you should consult a qualified
professional advisor.
This page is best viewed in Internet Explorer 11, Edge, Firefox 41, Chrome 46, Safari 9 or newer.
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/731118 2/2