100% found this document useful (1 vote)
940 views2 pages

Programmatically Change The Filter in The FactoryTalk Alarm and Events Summary Object in FactoryTalk View SE

This document describes how to programmatically change the filter in a FactoryTalk Alarm and Events Summary object in FactoryTalk View SE. It provides an example using VBA code to set the filter name to "Filter1" when a command button is clicked. The attachment is an example project file that demonstrates filter selection using command buttons.

Uploaded by

benditasea3352
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
940 views2 pages

Programmatically Change The Filter in The FactoryTalk Alarm and Events Summary Object in FactoryTalk View SE

This document describes how to programmatically change the filter in a FactoryTalk Alarm and Events Summary object in FactoryTalk View SE. It provides an example using VBA code to set the filter name to "Filter1" when a command button is clicked. The attachment is an example project file that demonstrates filter selection using command buttons.

Uploaded by

benditasea3352
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

14/11/2018 731118 - 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
731118 | Date Created: 09/04/2015 | Last Updated: 01/12/2018
Print
Access Level: TechConnect

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

Private Sub Button1_Released()

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.

ROCKWELL AUTOMATION DOES NOT WARRANT THE COMPLETENESS, TIMELINESS OR ACCURACY OF


ANY OF THE DATA CONTAINED IN THIS WEB SITE AND MAY MAKE CHANGES THERETO AT ANY TIME IN
ITS SOLE DISCRETION WITHOUT NOTICE. FURTHER, ALL INFORMATION CONVEYED HEREBY IS
PROVIDED TO USERS "AS IS." IN NO EVENT SHALL ROCKWELL BE LIABLE FOR ANY DAMAGES OF ANY
KIND INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS PROFIT OR DAMAGE, EVEN
IF ROCKWELL AUTOMATION HAVE BEEN ADVISED ON THE POSSIBILITY OF SUCH DAMAGES.

ROCKWELL AUTOMATION DISCLAIMS ALL WARRANTIES WHETHER EXPRESSED OR IMPLIED IN


RESPECT OF THE INFORMATION (INCLUDING SOFTWARE) PROVIDED HEREBY, INCLUDING THE IMPLIED
WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, AND NON-
INFRINGEMENT. Note that certain jurisdictions do not countenance the exclusion of implied warranties; thus, this
disclaimer may not apply to you.

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

You might also like