Alarm Client Control
Alarm Client Control
User Guide
aveva.com
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved.
No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by any means,
electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of AVEVA.
No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AVEVA assumes no responsibility
for errors or omissions. The information in this documentation is subject to change without notice and does not
represent a commitment on the part of AVEVA. The software described in this documentation is furnished under
a license agreement. This software may be used or copied only in accordance with the terms of such license
agreement.
ArchestrA, Avantis, Citect, DYNSIM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch, OASyS,
PIPEPHASE, PRiSM, PRO/II, PROVISION, ROMeo, SIM4ME, SimCentral, SimSci, Skelta, SmartGlance, Spiral
Software, WindowMaker, WindowViewer, and Wonderware are trademarks of AVEVA and/or its subsidiaries. An
extensive listing of AVEVA trademarks can be found at: https://sw.aveva.com/legal. All other brands may be
trademarks of their respective owners.
Publication date: Wednesday, May 4, 2022
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 0HB. UK
https://sw.aveva.com/
For information on how to contact sales and customer training, see https://sw.aveva.com/contact.
For information on how to contact technical support, see https://sw.aveva.com/support.
To access the AVEVA Knowledge and Support center, visit https://softwaresupport.aveva.com.
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 3
AVEVA™ Alarm Client Control
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 4
AVEVA™ Alarm Client Control
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 5
AVEVA™ Alarm Client Control
Contents
ClientMode Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
ConnectStatus Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
ContextMenu.AckAll Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
ContextMenu.AckOthers Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
ContextMenu.AckSelected Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
ContextMenu.AckSelectedGroups Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
ContextMenu.AckSelectedPriorities Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
ContextMenu.AckSelectedTags Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
ContextMenu.AckVisible Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
ContextMenu.Favorites Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
ContextMenu.Freeze Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
ContextMenu.Hidden Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
ContextMenu.HideAll Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
ContextMenu.HideOthers Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
ContextMenu.HideSelected Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
ContextMenu.HideSelectedGroups Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
ContextMenu.HideSelectedPriorities Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
ContextMenu.HideSelectedTags Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
ContextMenu.HideVisible Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
ContextMenu.Requery Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
ContextMenu.Reset Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
ContextMenu.ShelveAll Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
ContextMenu.ShelveOthers Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
ContextMenu.ShelveSelected Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
ContextMenu.ShelveSelectedGroups Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
ContextMenu.ShelveSelectedPriorities Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
ContextMenu.ShelveSelectedSeverities Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
ContextMenu.ShelveSelectedTags Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
ContextMenu.ShelveVisible Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
ContextMenu.Sort Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
ContextMenu.Statistics Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
ContextMenu.UnhideAll Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
ContextMenu.UnshelveAll Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
ContextMenu.UnshelveOthers Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
ContextMenu.UnshelveSelected Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
ContextMenu.UnshelveSelectedGroups Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
ContextMenu.UnshelveSelectedPriorities Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
ContextMenu.UnshelveSelectedSeverities Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
ContextMenu.UnshelveSelectedTags Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
ContextMenu.UnshelveVisible Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Database.Authentication Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Database.Name Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Database.Password Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Database.ServerName Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Database.UserID Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
DisableFileBrowsing Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Domain Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Enabled Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
EventColor.BackGround Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 6
AVEVA™ Alarm Client Control
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 7
AVEVA™ Alarm Client Control
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 8
AVEVA™ Alarm Client Control
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 9
AVEVA™ Alarm Client Control
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 10
Chapter 1
Client Modes
The Alarm Client Control supports five different client modes, which can be grouped depending on their data
source. The Alarm Control supports an ArchestrA Database (A2ALMDB), and the Historian History Blocks.
Current Alarms
When the Alarm Control is showing alarms in "Current Alarms" mode, it is showing currently active alarms
directly from the Alarm Manager.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 11
AVEVA™ Alarm Client Control
Chapter 1 – About the Alarm Client Control
When the Alarm Client Control is in the Recent Alarms and Events mode, the displayed alarms cannot be
acknowledged.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 12
AVEVA™ Alarm Client Control
Chapter 1 – About the Alarm Client Control
You can also configure the Alarm Client Control to interact with the Galaxy namespace and other Industrial
graphics by mapping its properties to application server attributes and symbol elements.
The Alarm Control can be placed into Industrial Graphics hosted by Automation Object templates and instances.
You can configure them to retrieve alarms from their hosting Area object or their hosting Automation object.
Alarm Acknowledgement
You can configure the Alarm Control to require an alarm to be acknowledged even if the condition causing the
alarm has passed. This ensures that an operator is aware of events that caused a temporary alarm state but have
returned to normal.
You acknowledge alarms at run time using a shortcut menu or through script methods.
You can see the current value and quality of tags or attributes in alarm from:
• InTouch running on the local computer
• Galaxy namespace
Note: You cannot see current value and quality data from InTouch tags running on a remote computer.
Alarm Queries
The Alarm control supports standard Galaxy alarm query formats, such as:
\galaxy!Area_001
Alarm query syntax is the same for both Current Alarms Mode and Recent Alarms and Events Mode. Queries in
Historical Alarms, Historical Events, and Historical Alarms and Events Modes are actually Alarm Database queries,
which follow rules and syntax for SQL Server database queries.
The alarm query syntax changes when you use the run-time alarm comment language switching feature.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 13
AVEVA™ Alarm Client Control
Chapter 1 – About the Alarm Client Control
The Alarm control also supports relative references for Galaxy alarms in alarm queries. For all alarm modes,
relative references are resolved at run time at the point of query to the Alarm Manager or Alarm Database.
You must put the reference part of the alarm query between less-than (<) and greater-than (>) characters.
The following table shows examples of alarm queries.
\provider!group Shows all alarms from the given provider and group.
For example:
\intouch!Group_A
\provider!group!tagname Shows all alarms from the given provider, group and
tag. For example:
\galaxy!Mixing_Area!RotorCtrl
\\node\provider!group Shows all alarms from the given provider and group
from a given node. For example:
\\remote\intouch!Group_B
\\node\provider!group!tagname Shows all alarms from the given provider, group and
tag from a given node. For example:
\\grnode\galaxy!Packaging_Area!Wrapper1
\galaxy!<myArea.tagname> Shows all alarms from the Area object hosting the
Automation Object
or
\galaxy!<me.Area>
\galaxy!<myPlatform.tagname> Shows all alarms from the Winplatform object
hosting the Automation Object.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 14
AVEVA™ Alarm Client Control
Chapter 1 – About the Alarm Client Control
Alarm Filtering
The Query Favorites of InTouch Alarm Viewer control define a set of alarm provider, alarm group, an optional
node name, and a priority range under one name. The alarm provider, alarm group, and the node name are used
for subscribing to a specific alarm group. The priority range on the other hand is used to filter the alarms from
the given alarm group.
The Filter Favorites of InTouch Alarm DB View control define a set of any number of criteria you want to filter
from the Alarm Database under one name.
In summary, Filter Favorites fulfill a purely filtering function whereas Query Favorites fulfill a subscription and a
filtering function at the same time.
The Alarm Control filtering feature unites both these concepts by exclusively using filter conditions and
subscribing to the necessary alarm providers on demand.
Filters can be saved and used in both run time and historical modes.
The filter conditions can be re-used between different client modes. For example, if you define node name,
provider name, alarm group, and a priority range for the current alarms, you can also use this filter to retrieve
the historized alarm data of the same source from the Alarm Database instead.
Filter definitions will be saved per user so operators working on the same server can access different saved
filters.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 15
AVEVA™ Alarm Client Control
Chapter 1 – About the Alarm Client Control
For example, the query string \\GRNode\galaxy!MixingArea is translated to the following filter string:
Node = ‘GRNode’ AND Provider=’galaxy’ AND Group=’MixingArea’
You can modify the filter in a tree to query only alarms in the priority range 1 to 250, such as:
AND
Node = ‘GRNode’
Provider = ‘Galaxy’
Group = ‘MixingArea’
Priority >= ‘1’
Priority <= ‘250’
Alarm Shelving
Operators can temporarily shelve selected alarms from the list of an Alarm Control’s active alarms. A shelved
alarm is suppressed and removed from the list of active alarms. Typically, operators shelve lower severity
nuisance alarms because they provide little diagnostic value and interfere with the operator’s ability to manage a
plant process.
An alarm is shelved for a specified period. After the period ends, alarms are automatically unshelved and appear
again in the list of active alarms. Operators can also manually unshelve an alarm before the end of the specified
shelved period.
By default, Medium and Low severity alarms are enabled for shelving. Critical and High severity alarms are not
because of the potential risk of shelving and ignoring alarms that represent serious operating states. For more
information about enabling shelving based on alarm severity, see "Configuring Alarm Severity to Priority
Mapping" in the Application Server User Guide.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 16
AVEVA™ Alarm Client Control
Chapter 1 – About the Alarm Client Control
Alarm Hiding
The "hiding" and "unhiding" of alarm records is known in the corresponding InTouch alarm controls as
"suppressing" and "unsuppressing".
When the Alarm Control is hiding alarms, it ignores certain alarms. If an alarm matches the exclusion criteria, it is
not visible.
The actual alarm generation is completely unaffected by hiding. Alarm records are still logged into the alarm
history.
As in the InTouch HMI, you can unhide specific alarms and also use properties and methods to interact with the
alarm hiding feature at run time.
Alarm Sorting
Like InTouch alarm controls, you can sort the alarms in ascending or descending direction for selected columns.
The Alarm Control supports alarm sorting for up to four columns at design time and run time. At run-time, the
operator can configure sorting of even more columns by clicking on the column headers of the Alarm Control
while pressing the Shift key.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 17
AVEVA™ Alarm Client Control
Chapter 1 – About the Alarm Client Control
Status Bar
The status bar of the Alarm Control resembles the status bars of the InTouch alarm controls, with the following
differences:
• Alarm Control also shows the alarm client time zone
• Alarm Control querying the Alarm Database has a Requery button to more easily retrieve data from the
Alarm Database
• Alarm Control shows the current client mode as an icon
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 18
Chapter 2
This section shows you how to place an Alarm Client Control onto the canvas and configure it. You can configure
it either with the Edit Animations dialog box, or by changing individual properties in the Properties Editor.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 19
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 20
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
We recommend you configure the Alarm Control with the Edit Animations dialog box and only use the
Properties Editor to edit the configuration afterward.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 21
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 22
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
4. In the Alarm Query box, type the alarm query. To create a new line in the Alarm Query box, press Ctrl +
Enter.
The alarm query must follow one of the following syntax:
• \\node\provider!group
• \provider!group
• HotBackupName
For example:
\galaxy!Area_001
For Alarm Controls hosted by Automation Object templates or instances, you can specify one of the
following alarm queries:
• \galaxy!<myArea.Tagname> to retrieve alarms and events from the Area object hosting the Automation
Object template or instance.
• \galaxy!<me.Area>!<me.Tagname>.* to retrieve alarms and events from the Automation Object
template or instance.
For more information on alarm queries, see Alarm Queries.
5. If you want to use a default acknowledgement comment, select the Use Default Ack Comment check box
and type a comment in the text box.
6. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 23
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 24
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 25
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
6. To use a specific start time and end time, clear Update to Current Time, and select the start time from the
list at the left and the end time from the list at the right of the Time Range pickers.
You can also use the TimeSelector.* methods and properties in scripting to set the start date, end date, or
duration at run time. For more information, see TimeSelector Property.
7. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 26
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 27
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 28
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
b. Configure the heading background color by clicking the color box next to Heading and under
Background. If the color box does not open, you need to select the Show Heading option on the Run-
Time Behavior page first.
c. Configure the grid color by clicking the color box next to Grid. If the color box does not open, you need
to select the Show Grid option on the Run-Time Behavior page first.
d. Configure the window color by clicking the color box next to Window.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 29
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 30
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
3. In the list at the right, locate the Ack record and priority range for which you want to change the text or
background color.
4. Click the color box in the Text or Background column of the line. The color picker appears.
5. Select a color and click OK.
6. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 31
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
a. Click the color box in the Text or Background column of the line. The color picker appears.
b. Select a color and click OK.
5. Locate the Flash Unack record and priority range for which you want to change the text or background color.
Do the following:
a. Click the color box in the Text or Background column of the line. The color picker appears.
b. Select a color and click OK.
6. Click OK.
All changes you make in the Column Details list are shown in the grid preview.
You can also use the grid preview to resize columns or change their order with the pointer.
Column headers can be localized along with other symbol text when you export, translate, and reimport
language files. The translated language files must be imported to the InTouch HMI for run-time language
switching. For further information, see Working with Languages in the Application Server User’s Guide.
Important: If you rename or reorder column headers, you must repeat the symbol text translation procedures. If
you do not, your changes will not be available for run-time language switching.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 32
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
5. Click OK.
Resize Columns
You can resize the column headers in the Alarm Control either by:
• Typing in a numeric value
• Dragging the column header boundary width with the pointer in the grid preview
To resize the column numerically
1. Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
2. Click Column Details. The Column Details page appears.
3. In the Column Details list, locate the name of the column you want to resize and click on the Width value in
the row.
4. Type a new width in pixels and press Enter. The Column Details list and the grid preview are updated.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 33
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
5. Click OK.
To resize the column graphically
1. Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
2. Click Column Details. The Column Details page appears.
3. In the grid preview, locate the column you want to resize and drag the column boundary to resize the
column. The width value of the Column Details list is updated.
4. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 34
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
• In the grid preview, drag the name of the column you want to reposition and drop it to the left of
another column to reposition it
The grid preview and the Column Details list shows the new column order.
4. Click OK.
To reset column widths and order
1. Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
2. Click Column Details. The Column Details page appears.
3. Click Reset. The column widths, names, and order are reset to their default values.
4. Click OK.
Sort Alarms
You can configure how the Alarm Control sorts alarm records at run time. By default, the Alarm Control lists
alarm records by time in ascending order.
You can sort alarm records in ascending or descending order based on a first sort criteria, an optional second sort
criteria, an optional third sort criteria, and and optional fourth sort criteria.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 35
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
You can configure the sorting columns and directions either in lists or with the grid preview. Use the
SortColumn.First Property, SortColumn.Second Property, and SortColumn.Third Property properties in scripting
to set the columns to be sorted at run time. Use the SortOrder.First Property, SortOrder.Second Property, and
SortOrder.Third Property properties in scripting to set the sort direction for each at run time.
To set sorting columns and directions with lists
1. Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
2. Click Column Details. The Column Details page appears.
3. In the Sorting area, do the following:
a. Select the primary sort column in the First Sort Column list and a sorting direction in the list to its right.
b. Optionally, select the secondary sort column in the Second Sort Column list and a sorting direction in the
list to its right.
c. If you set the Second Sort Column, optionally select the tertiary sort column in the Third Sort Column
list and a sorting direction in the list to its right.
The grid preview is updated and shows arrows for the sorted columns and their sort directions.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 36
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
Note: If you click on a column header after releasing the Shift key, all sorting information is lost and the
selected column is the new primary sorting criteria.
5. To set second, third, and fourth sorting, hold the Shift key and repeat from step 3.
6. Release the Shift key.
7. Click OK.
Filter Alarms
You can filter current and historical alarms by using queries and filters. Queries and filters are collections of filter
criteria in a logical construct.
For example, you can filter alarms by defining a query or a filter that only shows alarms with priorities larger than
500 and smaller than 750.
You can re-use the filters and queries you define for historical alarms for current alarms and vice versa. You can
also re-use filters and queries you define at design time at run time and vice versa.
Important: Queries and filters for current alarms and recent alarms and events require at least a Provider and
Group as filter criteria. These must use the equals sign or a message asking for those fields will appear.
When you use TimeLCT, TimeOAT, or TimeLCTOAT as filter criteria for historical alarm modes, you need make
sure that the TimeSelector.StartDate and TimeSelector.EndDate properties do not limit the query. Otherwise the
Alarm Control can possibly not return all alarm and event records.
Set the TimeSelector.StartDate property earlier than any time filtering requirement, and the
TimeSelector.EndDate later than any time filtering requirement.
Operator = Like
Wildcard * %
For example:
Provider = ‘galaxy’ AND Group = ‘Mixing’
AND Name Like ‘RotorBlade%’
If you want to use a query filter containing a wildcard for a current query and a historical query, create two
separate query filters. If a column contains null data, it cannot be retrieved using the Like operator.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 37
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
4. Click OK.
Note: In Current Alarms mode, if you try to proceed from Queries and Filters page with no query or filter
selected, you will be prompted with a message to confirm you want to continue. Upon click of Yes the
default query will be selected and you can continue. Upon click of No, you will be returned to the Queries
and Filters page. If a query is selected but no filter, no message will display.
In Historical Alarms mode, if you proceed without a query selected but have selected a filter, the filter will be
applied. If neither query nor filter is selected, you will be prompted with the same message.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 38
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
2. Click Queries and Filters. The Query and Filter Favorites page appears.
3. Click the Add New Query button above the saved query favorites box or click the Add New Filter button
above the saved filter favorites box.
The Add Query or Filter dialog box appears.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 39
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
5. You can configure and select more than one filter for any selected query. For example, “F1” and “F3”.
The “Selected Filter” label will display the selected filters using comma separator.
6. To select all filters, click the Select All checkbox. If the Select All checkbox is unchecked, all filters will be
unselected.
Construct Filters
You use the Add Query or Filter dialog box to create or edit a filter graphically.
To construct a filter
1. If you want to change the filter name, type a new unique name in the Filter Name box.
2. Add filter criteria to the construction area by selecting a column name on the left and clicking the right arrow
button. When you add filter criteria to the construction area, they are automatically logically connected by
AND.
3. If necessary, remove filter criteria by selecting them in the filter construction area and clicking the left arrow
button.
4. To change the logical operator, select it in the filter construction area, and then either:
• Click AND or OR
• Right-click and select AND or OR from the shortcut menu
5. To group filter criteria logically, either:
• Drag a filter criteria in the construction area over another filter criteria
• Select one filter criteria, click Group, and then click the other filter criteria
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 40
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
By default, the filter criteria are logically grouped with AND. If necessary, you can select the AND item in
the tree and click OR to change it to an OR grouping.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 41
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
5. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 42
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 43
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
4. Click OK.
%m Two-digit month 03
%b Three-letter month Mar
%d Two-digit day 17
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 44
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
%y Two-digit year 08
%#x Full day and date Tuesday, March 11, 2008
%M Minutes 55
%S Seconds 34
%s Milliseconds 223
%p AM or PM PM
5. Click OK.
M Single-digit month 9
MM Two-digit month 09
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 45
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
d Single-digit day 8
dd Two-digit day 08
yy Two-digit year 08
mm Minutes 55
ss Seconds 34
tt AM or PM PM
5. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 46
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 47
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
• Select the Show Status Bar check box to show the status bar at run time, or clear it to hide the status bar
at run time.
Caution: If you hide the status bar, you will not be able to see important indicators, such as the New
Alarms, Hidden Alarms, and Frozen Grid indicators.
4. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 48
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 49
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 50
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 51
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
6. Click OK.
You can configure the alarm signature requirement as well as the minimum and maximum values in run time
using the Object Editor. For more information about using the Object Editor, see the Application Server User’s
Guide, Working with Objects.
For more information about configuring the Alarm Control in run time to require an alarm acknowledgement
signature, see the "SignedAlarmAck() Applied Examples" topic in the Creating and Managing Industrial Graphics
User’s Guide.
Note: If your computer supports Smart Cards, you can use them for alarm authentication at run time. You need
to have the Smart Card mapped to your user account in the domain. If the Smart Card is already in the reader
and you enter the correct PIN, the system will allow you to acknowledge the alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 52
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
By default, the logged-in user appears in the Username field. If the application security type is ArchestrA,
then ArchestrA appears in the Domain field and cannot be edited. If the credentials are valid, the Alarm
Control attempts to shelve the selected alarms.
The Alarm Control shows an error message if the operator enters invalid credentials. When the operator
clicks OK on the error message, the Shelve Comment dialog appears again with the entered user name,
comment, and duration. The Password (or PIN) is blank. The operator can attempt to authenticate again or
cancel.
To configure the Alarm Control to require a SHELVE signature
1. Place an Alarm Control in the drawing canvas.
2. Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
3. Click Run-Time Behavior. The Run-Time Behavior page appears.
4. Select or clear Requires SHELVE Signature based on whether operators need to enter their credentials to
shelve alarms or not.
5. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 53
AVEVA™ Alarm Client Control
Chapter 2 – Configure the Alarm Client Control
For the current alarms Context menu, you can also show or hide entire shortcut submenus. Use the
ContextMenu and the ShowContextMenu Property in scripting to control if shortcut menu items appear or not at
run time.
To hide the Context menu
1. Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
2. Click Run-Time Behavior. The Run-Time Behavior page appears.
3. Clear the Show Context Menu check box.
4. Click OK.
To show or hide Context menu options
1. Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
2. Click Run-Time Behavior. The Run-Time Behavior page appears.
3. Make sure the Show Context Menu check box is selected.In the shortcut menu lists, do the following:
a. Select the options you want to appear on the run-time Context menu (if applicable for the selected client
mode).
b. Clear the options you want to hide from the operator on the run-time Context menu.
4. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 54
Chapter 3
During run time, users can show a shortcut menu containing options to monitor and manage alarms. Also, other
options enable users to sort and filter alarms shown by the Alarm control.
Client Mode Indicates the Alarm Control is showing current alarms (or recent
alarms and events).
New Alarms Appears if new alarms have occurred. If you move the pointer
over the indicator, the tooltip shows how many alarms are
unacknowledged.
Hidden Alarms Appears if any alarms are currently hidden. If you move the
pointer over the indicator, the tooltip shows how many alarms are
hidden.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 55
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
Alarm Records
Shows the total number of alarm records and which alarms are
currently shown.
Query Filter
Shows the current time zone of the Alarm Control. Move the
pointer over the time zone to show the full information in a tool
tip.
Element Description
Client Mode
Shows the total number of alarm records and the number of alarms shown by
the Alarm Control.
Alarm Database
Shows the name of the server hosting the Alarm Database and the Alarm
Database name.
Connection Status
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 56
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
Element Description
Time Zone
Shows the current time zone of the Alarm Control. Move the pointer over the
time zone to show complete time zone information in a tool tip.
Requery
Click this button to retrieve latest alarm records from the Alarm Database.
Acknowledge Alarms
You can configure the Alarm Control to require an alarm to be acknowledged even if the condition causing the
alarm has passed. This ensures that an operator is aware of events that caused a temporary alarm state, but
have returned to normal. You acknowledge alarms at run time using a shortcut menu or by script methods.
You can acknowledge alarm records directly from the Alarm Control. You can acknowledge:
• One or more selected alarms
• All alarms, including alarms not visible due to the limited space of the Alarm Control
• All visible alarms
• All alarms with common values, such as provider names, group names, priority ranges, and tag names. You
can simplify alarm acknowledgement for the operator by using methods in scripting. For more information,
see the Ack.All() Method.
Note: When the Alarm Client Control is in the Recent Alarms and Events mode, the displayed alarms cannot
be acknowledged.
To acknowledge selected alarms using the Alarm Control grid
1. Select one or more alarms in alarm state.
2. Right-click on an alarm shown in the Alarm Control and click Ack Selected.
If no default acknowledgement statement is configured for the Alarm Control, the Ack Comment dialog box
appears.
3. Type an alarm acknowledgement comment and click OK.
To acknowledge other alarms using the Alarm Control grid
1. Select one or more alarms in alarm state.
2. Right-click the Alarm Control grid, point to Ack Others, and click one of the following:
• Ack All to acknowledge all alarms in alarm state
• Ack Visible to acknowledge all visible alarms
• Ack Selected Group to acknowledge alarms with the same provider names and group names of one or
more selected alarms in alarm state.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 57
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
• Ack Selected Tag to acknowledge alarms with the same provider names, group names, and tag names
within the priority ranges of one or more selected alarms in alarm state.
• Ack Selected Priority to acknowledge alarms with the same provider names, group names, and within
the priority ranges of one or more selected alarms in alarm state.
3. If no default acknowledgement statement is configured for the Alarm Control, the Ack Comment dialog box
appears.
4. Type an alarm acknowledgement comment and click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 58
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 59
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
b. If you need to provide your log on credentials instead of the Smart Card details to verify your signature,
click the User Name Authentication button under Mode. A different version of the Ack Alarms dialog
box appears where the Smart Card button under Mode is enabled.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 60
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
Shelving Alarms
You can shelve alarms directly from the Alarm Control by selecting commands from the Alarm Control’s Context
menu.
To shelve selected alarms using the Alarm Control
1. Select one or more alarms in alarm state.
2. Right-click the Alarm Control grid and click Shelve Selected from the shortcut menu.
The Shelve Comment dialog box appears to set a shelf duration and enter a comment.
Note: If the application runs under security and the Alarm Control has been configured to require a SHELVE
signature, operators must authenticate themselves. The Shelve Comment dialog box includes additional
fields for an operator to enter a username, password, and domain.
3. Select an alarm shelving duration from the Duration field.
4. Type a mandatory alarm shelving comment in the Reason field and click OK.
To shelve other alarms using the Alarm Control
1. Select one or more alarms in alarm state.
2. Right-click the Alarm Control, point to Shelve Others, and click one of the following shortcut commands:
• Shelve All to shelve all alarms in alarm state
• Shelve Visible to shelve all visible alarms
• Shelve Selected Groups to shelve alarms with the same provider names and group names of one or
more selected active alarms
• Shelve Selected Tags to shelve alarms with the same provider names, group names, and tag names of
one or more selected active alarms
• Shelve Selected Priorities to shelve alarms with the same provider names, group names, and within the
same priority ranges of one or more selected active alarms
• Shelve Selected Severities to shelve alarms with the same provider names, group names, and within the
same severity ranges of one or more selected active alarms
The Shelve Comment dialog box appears with fields to set a shelf duration and enter a comment.
3. Select an alarm shelving duration from the Duration field.
4. Type an alarm shelving comment in the Reason field and click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 61
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
For more information about configuring queries to filter alarms, see Filter Alarms.
Unshelve Alarms
Manually unshelving alarms follows a similar sequence of steps to shelve alarms using Context menu commands.
You should have created a query that shows the current shelved alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 62
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
2. Right-click the Alarm Control grid and click Unshelve Selected from the Context menu.
The Unshelve Comment dialog box appears.
3. Type an optional alarm unshelving comment in the Reason field and click OK.
To unshelve other alarms using the Alarm Control
1. Select one or more alarms in alarm state.
2. Right-click the Alarm Control, point to Unshelve Others, and click one of the following shortcut commands:
• Unshelve All to unshelve all shelved alarms
• Unshelve Visible to unshelve all visible shelved alarms
• Unshelve Selected Groups to unshelve alarms with the same provider names and group names of one or
more selected shelved alarms
• Unshelve Selected Tags to unshelve alarms with the same provider names, group names, and tag names
of one or more selected shelved alarms
• Unshelve Selected Priorities to unshelve alarms with the same provider names, group names, and
within the same priority ranges of one or more selected shelved alarms
• Unshelve Selected Severities to unshelve alarms with the same provider names, group names, and
within the same severity ranges of one or more selected shelved alarms
The Unshelve Comment dialog box appears.
3. Type an optional alarm unshelving comment in the Reason field and click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 63
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
2. In the First Sort Criteria list, select the first sort column and a sorting direction in the list to its right.
3. Optionally, select the second sort column in the Second Sort Criteria list and a sorting direction in the list to
its right.
4. If you set the Second Sort Column, optionally select the third sort column in the Third Sort Criteria list and a
sorting direction in the list to its right.
5. Click OK.
To set sorting columns and directions in the grid at run time
1. In the Alarm Control grid, click on a column header to set sorting for the column. An arrow appears on the
column header.
2. To change the sorting direction, click on the column header again. The arrow changes direction on the
header.
Note: If you click on a column header after releasing the Shift key, all sorting information is lost and the
selected column is the new primary sorting criteria.
3. To set sorting for second and third columns, repeat step 3 while pressing the Shift key.
4. Release the Shift key.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 64
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 65
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
When this option is selected, modifications made to queries or filters at run-time are saved on a per user and
alarm control instance to a XML file. For example, a saved query will save as UserQueryFilter_001.xml.
Modifications are saved in the following default directory:
C:\Users\<OS Login Name>\AppData\Local\Wonderware
The map between the Alarm Control instance and the above XML file is saved in a map file, "InstancesMap.dat".
Modified queries and filters will be available upon closing and restarting the alarm control window or
WindowViewer.
If you uncheck the Save User Queries and Filters option, updates made to queries and filters during run-time will
not be saved.
Note: When the Save User Queries and Filter option is checked, the Overwrite Design Time Queries and Filters
option is enabled and checked by default. When checked, this option resolves naming conflicts between design-
time queries and filters and run-time queries and filters loaded from the XML file. Naming conflicts will be
resolved by overwriting the design time queries and filters.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 66
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
(All) No filtering, all records are shown for the selected column.
(Custom) Lets you configure a more complex filter for the selected column, for
example a filter that can compare values of different columns.
(Blanks) Filters by showing blank values only.
(NonBlanks) Filters by showing non blank values only.
Values Filters by the selected value.
If a filter is applied to any column in the Alarm Control, the filter icon in the column header appears in blue.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 67
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 68
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
• Type or select a different operand for the current condition. The operand can be a value, or the value of
a different column in the same row
• Click Add a condition to add more conditions to the filter
• Click Delete Condition to delete one or more selected conditions (You can mark the condition by clicking
on the button to the left of each condition.)
4. Click OK.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 69
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
Hide Alarms
The "hiding" and "unhiding" of alarm records is known in the corresponding InTouch alarm controls as
"suppressing" and "unsuppressing".
When the Alarm Control is hiding alarms, it ignores certain alarms. If an alarm matches the exclusion criteria, it is
not visible.
The actual alarm generation is completely unaffected by hiding. Alarm records are still logged into the alarm
history.
You can hide:
• All alarms, including alarms not visible due to the limited space of the Alarm Control
• All visible alarms
• One or more selected alarms
• All alarms with the same provider names and group names of one or more selected alarms
• All alarms with the same provider names, group names, and within the priority ranges of one or more
selected alarms
• All alarms with the same provider names, group names, and tag names within the priority ranges of one or
more selected alarms
You can also view which alarms are hidden and unhide them.
To hide all alarms
• Right-click the Alarm Control grid, point to Hide Others, and click Hide All
To hide all visible alarms
• Right-click the Alarm Control grid, point to Hide Others, and click Hide Visible
To hide selected alarms
1. Select one or more alarms in alarm state.
2. Right-click the Alarm Control grid and click Hide Selected.
To hide alarms with common parameters
1. Select one or more alarms.
2. Right-click the Alarm Control grid, point to Hide Others, and click one of the following:
• Hide Selected Groups to hide alarms with the same provider names and group names of one or more
selected alarms
• Hide Selected Tags to hide alarms with the same provider names, group names, and tag names within
the priority ranges of one or more selected alarms
• Hide Selected Priorities to hide alarms with the same provider names, group names, and within the
priority ranges of one or more selected alarms
To unhide alarms
1. Right-click the Alarm Control grid and click Hidden. The Hidden Alarms dialog box appears.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 70
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
A check mark next to the Freeze option indicates if the grid is currently frozen.
2. Click Freeze. The Alarm Control grid is either frozen or unfrozen.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 71
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
2. If you use an Alarm Hotbackup name as alarm query, you can expand the Hotbackup name in the Alarm
Statistics dialog box to show the individual percentages of retrieval for the configured primary and backup
alarm provider.
3. Click Update to update the statistics.
4. Click Close.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 72
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
10. Click Historical Alarms to show historical alarms instead of current alarms.
By default, the Alarm Control tries to connect to the alarm database (either the InTouch Database called
WWALMDB or the ArchestrA Database called A2ALMDB) on the local computer using the currently logged on
user. If you are using a different configuration, you can use value input links or action script to set the following
properties:
• Database.ServerName Property
• Database.UserID Property
• Database.Password Property
• Domain Property
• Database.Name Property
• Database.Authentication Property
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 73
AVEVA™ Alarm Client Control
Chapter 3 – Use the Alarm Control at Run Time
• In WindowMaker, use the InTouch QuickScript SwitchDisplayLanguage in a button action script to switch
the language. At run time, click the button to switch the language
• In WindowMaker, use the system tag $Language in a button action script and assign it to the language
code you want to switch to. At run time, click the button to switch the language
For more information about run-time language switching, see Working with Languages, in the Application Server
User’s Guide.
Important: If you rename or reorder column headers, you must repeat the symbol text translation procedures. If
you do not, your changes will not be available for run-time language switching.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 74
Chapter 4
This section describes the script properties, methods, and events of the Alarm Control.
AckComment.DefaultValue Property
The AckComment.DefaultValue property is a read-write string property that gets or sets the default
acknowledgement comment when the AckComment.UseDefault property is TRUE.
Syntax
result = AlarmClient.AckComment.DefaultValue;
AlarmClient.AckComment.DefaultValue = ackComment;
Example
AlarmClient1.AckComment.UseDefault = 1;
AlarmClient1.AckComment.DefaultValue = "This alarm is acknowledged by John Smith";
Remarks
For more information, see Showing Current Alarms or Recent Alarms and Events.
AckComment.UseDefault Property
The AckComment.UseDefault property is a read-write Boolean property that gets or sets the usage of the default
acknowledgement comment.
Syntax
result = AlarmClient.AckComment.UseDefault;
AlarmClient.AckComment.UseDefault = useComment;
Example
AlarmClient1.AckComment.UseDefault = 1;
AlarmClient1.AckComment.DefaultValue = "This alarm is acknowledged by John Smith";
Remarks
For more information, see Showing Current Alarms or Recent Alarms and Events.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 75
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
AckSignature.MaxPriority Property
The AckSignature.MaxPriority property is a read-write integer property, which gets or sets the maximum priority
value for alarms that require a signature to be acknowledged. The value must range between 1 and 999, and
must be greater than or equal to the AckSignature.MinPriority value. The default value of
AckSignature.MaxPriority is 999.
Syntax
To Set:
<EAC instance name>.<Property Name> = <integer value>;
Example
AlarmClient1.AckSignature.MaxPriority = 500;
Syntax:
To Get:
integer <variable name> = <EAC instance name>.<Property Name>;
Example
dim iMax as integer;
iMax = AlarmClient1.AckSignature.MaxPriority;
Remarks
For more information, see Provide a Signature to Acknowledge Alarms.
AckSignature.MinPriority Property
The AckSignature.MinPriority property is a read-write integer property, which gets or sets the minimum priority
value for alarms that require a signature to be acknowledged. The value must range between 1 and 999, and
must be less than or equal to the AckSignature.MaxPriority value. The default value of AckSignature.MinPriority
is 1.
Syntax
To Set:
<EAC instance name>.<Property Name> = <integer value>;
Example
AlarmClient1.AckSignature.MinPriority = 100;
Syntax
To Get:
To Get:
integer <variable name> = <EAC instance name>.<Property Name>;
Example
dim iMin as integer;
iMin = AlarmClient1.AckSignature.MinPriority;
Remarks
For more information, see Provide a Signature to Acknowledge Alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 76
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
AckSignature.Required Property
The AckSignature.Required property is a read-write Boolean property, indicating whether a signature is required
for acknowledging the alarms. The default value of AckSignature.MinPriority is True.
Syntax
To Set:
<EAC instance name>.<Property Name> = <boolean value>;
Example
AlarmClient1.AckSignature.Required = true;
Syntax
To Get:
boolean <variable name> = <EAC instance name>.<Property Name>;
Example
dim bIsACKSigned as boolean;
bIsACKSigned = AlarmClient1.AckSignature.Required;
Remarks
For more information, see Configuring the Alarm Control to Require a SHELVE Signature
AlarmColor.Ack.BackGround Property
The AlarmColor.Ack.BackGround property is an array of read-write integer properties that get or set the
background colors of all acknowledged alarm records.
Index Purpose
0 Sets the background color of all acknowledged alarm records in all priority ranges.
1 Gets or sets the background color of acknowledged alarm records in the priority
range 1 to AlarmColor.Range[1].
2 Gets or sets the background color of acknowledged alarm records in the priority
range AlarmColor.Range[1] to AlarmColor.Range[2].
3 Gets or sets the background color of acknowledged alarm records in the priority
range AlarmColor.Range[2] to AlarmColor.Range[3].
4 Gets or sets the background color of acknowledged alarm records in the priority
range AlarmColor.Range[3] to 999.
Syntax
Color = AlarmClient.AlarmColor.Ack.BackGround[n];
AlarmClient.AlarmColor.Ack.BackGround[n] = Color;
Parameters
n
Index from 0 to 4.
Color
Color of background.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 77
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Examples
AlarmClient1.AlarmColor.Ack.BackGround[0] = Color.Red;
AlarmClient1.AlarmColor.Ack.BackGround[1] = Color.FromARGB(0,128,0);
AlarmClient1.AlarmColor.Ack.BackGround[2] = Color.Grey;
AlarmClient1.AlarmColor.Ack.BackGround[3] = Color.Yellow;
AlarmClient1.AlarmColor.Ack.BackGround[4] = Color.Black;
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.Ack.ForeGround Property
The AlarmColor.Ack.ForeGround property is an array of read-write integer properties that get or set the text
colors of all acknowledged alarm records.
Index Purpose
0 Sets the text color of all acknowledged alarm records in all priority ranges.
1 Gets or sets the text color of acknowledged alarm records in the priority
range 1 to AlarmColor.Range[1].
2 Gets or sets the text color of acknowledged alarm records in the priority
range AlarmColor.Range[1] to AlarmColor.Range[2].
3 Gets or sets the text color of acknowledged alarm records in the priority
range AlarmColor.Range[2] to AlarmColor.Range[3].
4 Gets or sets the text color of acknowledged alarm records in the priority
range AlarmColor.Range[3] to 999.
Syntax
Color = AlarmClient.AlarmColor.Ack.ForeGround[n];
AlarmClient.AlarmColor.Ack.ForeGround[n] = Color;
Parameters
n
Index from 0 to 4.
Color
Color of text.
Examples
AlarmClient1.AlarmColor.Ack.ForeGround[0] = Color.Black;
AlarmClient1.AlarmColor.Ack.ForeGround[1] = Color.Blue;
AlarmClient1.AlarmColor.Ack.ForeGround[2] = Color.Green;
AlarmClient1.AlarmColor.Ack.ForeGround[3] = Color.Yellow;
AlarmClient1.AlarmColor.Ack.ForeGround[4] = Color.FromARGB(0,128,0);
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 78
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.Ack.RTN.BackGround Property
The AlarmColor.Ack.RTN.BackGround property is a read-write color property that gets or sets the background
color of acknowledged alarm records that "return to normal" (ACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.Ack.RTN.BackGround;
AlarmClient.AlarmColor.Ack.RTN.BackGround = Color;
Parameters
Color
Color of background.
Return Value
Returns the background color of acknowledged alarms that "return to normal".
Example
AlarmClient1.AlarmColor.Ack.RTN.BackGround = Color.Blue;
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.Ack.RTN.ForeGround Property
The AlarmColor.Ack.RTN.ForeGround property is a read-write color property that gets or sets the text color of
acknowledged alarm records that "return to normal" (ACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.Ack.RTN.ForeGround;
AlarmClient.AlarmColor.Ack.RTN.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.AlarmColor.Ack.RTN.ForeGround = Color.Black;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 79
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.Range Property
The AlarmColor.Range property is an array of read-write integer properties that get or set the boundaries of the
priority ranges.
You can use priority ranges to classify, group, and emphasize alarms and events belonging to a certain priority
range.
The boundaries must fulfill the following condition:
1 < Range[1] < Range[2] < Range[3] < 999
By default, the boundaries are set as follows:
• AlarmColor.Range[1] 250
• AlarmColor.Range[2] 500
• AlarmColor.Range[3] 750
Syntax
RangeN = AlarmClient.AlarmColor.Range[N];
AlarmClient.AlarmColor.Range[1] = RangeN;
Parameters
N
Range index 1, 2, or 3.
Example
The following example defines four priority ranges (1 to 50, 51 to 600, 601 to 800, and 801 to 999):
AlarmClient1.AlarmColor.Range[1] = 50;
AlarmClient1.AlarmColor.Range[2] = 600;
AlarmClient1.AlarmColor.Range[3] = 800;
Remarks
For more information, see Set Priority Ranges for Alarm Records
AlarmColor.RTN.BackGround Property
The AlarmColor.RTN.BackGround property is a read-write color property that gets or sets the background color
of alarm records that "return to normal" (ACK_RTN and UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.RTN.BackGround;
AlarmClient.AlarmColor.RTN.BackGround = Color;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 80
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Parameters
Color
Color of background.
Example
AlarmClient1.AlarmColor.RTN.BackGround = Color.Blue;
Remarks
For more information, see Set Alarm Return To Normal Record Colors.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.RTN.ForeGround Property
The AlarmColor.RTN.ForeGround property is a read-write color property that gets or sets the text color of alarm
records that "return to normal" (ACK_RTN and UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.RTN.ForeGround;
AlarmClient.AlarmColor.RTN.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.AlarmColor.RTN.ForeGround = Color.Yellow;
Remarks
For more information, see Set Alarm Return To Normal Record Colors.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.UnAck.BackGround Property
The AlarmColor.UnAck.BackGround property is an array of read-write integer properties that get or set the
background colors of all unacknowledged alarm records.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 81
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Index Purpose
0 Sets the background color of all unacknowledged alarm records in all priority
ranges.
1 Gets or sets the background color of unacknowledged alarm records in the
priority range 1 to AlarmColor.Range[1].
2 Gets or sets the background color of unacknowledged alarm records in the
priority range AlarmColor.Range[1] to AlarmColor.Range[2].
3 Gets or sets the background color of unacknowledged alarm records in the
priority range AlarmColor.Range[2] to AlarmColor.Range[3].
4 Gets or sets the background color of unacknowledged alarm records in the
priority range AlarmColor.Range[3] to 999.
Syntax
Color = AlarmClient.AlarmColor.UnAck.BackGround[n];
AlarmClient.AlarmColor.UnAck.BackGround[n] = Color;
Parameters
n
Index from 0 to 4.
Color
Color of background.
Example
AlarmClient1.AlarmColor.UnAck.BackGround[0] = Color.Blue;
AlarmClient1.AlarmColor.UnAck.BackGround[1] = Color.ARGB(223,113,76);
AlarmClient1.AlarmColor.UnAck.BackGround[2] = Color.Yellow;
AlarmClient1.AlarmColor.UnAck.BackGround[3] = Color.Green;
AlarmClient1.AlarmColor.UnAck.BackGround[4] = Color.White;
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.UnAck.Flash.BackGround Property
The AlarmColor.UnAck.Flash.BackGround property is an array of read-write color properties that get or set the
background colors of all flashing unacknowledged alarm records.
Index Purpose
0 Sets the background color of all flashing unacknowledged alarm records in all
priority ranges.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 82
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Index Purpose
AlarmColor.UnAck.Flash.ForeGround Property
The AlarmColor.UnAck.Flash.ForeGround property is an array of read-write color properties that get or set the
text colors of all flashing unacknowledged alarm records.
Index Purpose
0 Sets the text color of all flashing unacknowledged alarm records in all priority
ranges.
1 Gets or sets the text color of flashing unacknowledged alarm records in the
priority range 1 to AlarmColor.Range[1].
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 83
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Index Purpose
2 Gets or sets the text color of flashing unacknowledged alarm records in the
priority range AlarmColor.Range[1] to AlarmColor.Range[2].
3 Gets or sets the text color of flashing unacknowledged alarm records in the
priority range AlarmColor.Range[2] to AlarmColor.Range[3].
4 Gets or sets the text color of flashing unacknowledged alarm records in the
priority range AlarmColor.Range[3] to 999.
Syntax
Color = AlarmClient.AlarmColor.UnAck.Flash.ForeGround[n];
AlarmClient.AlarmColor.UnAck.Flash.ForeGround[n] = Color;
Parameters
n
Index from 1 to 4.
Color
Color of text.
Examples
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[1] = Color.ARGB(223,113,76);
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[2] = Color.Yellow;
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[3] = Color.Green;
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[4] = Color.White;
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.UnAck.ForeGround Property
The AlarmColor.UnAck.ForeGround property is an array of read-write integer properties that get or set the text
colors of all unacknowledged alarm records.
Index Purpose
0 Sets the text color of all unacknowledged alarm records in all priority ranges.
1 Gets or sets the text color of unacknowledged alarm records in the priority range
1 to AlarmColor.Range[1].
2 Gets or sets the text color of unacknowledged alarm records in the priority range
AlarmColor.Range[1] to AlarmColor.Range[2].
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 84
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Index Purpose
3 Gets or sets the text color of unacknowledged alarm records in the priority range
AlarmColor.Range[2] to AlarmColor.Range[3].
4 Gets or sets the text color of unacknowledged alarm records in the priority range
AlarmColor.Range[3] to 999.
Syntax
Color = AlarmClient.AlarmColor.UnAck.ForeGround[n];
AlarmClient.AlarmColor.UnAck.ForeGround[n] = Color;
Parameters
n
Index from 0 to 4.
Color
Color of text.
Example
AlarmClient1.AlarmColor.UnAck.ForeGround[0] = Color.Blue;
AlarmClient1.AlarmColor.UnAck.ForeGround[1] = Color.ARGB(223,113,76);
AlarmClient1.AlarmColor.UnAck.ForeGround[2] = Color.Yellow;
AlarmClient1.AlarmColor.UnAck.ForeGround[3] = Color.Green;
AlarmClient1.AlarmColor.UnAck.ForeGround[4] = Color.White;
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.UnAck.RTN.BackGround Property
The AlarmColor.UnAck.RTN.BackGround property is a read-write color property that gets or sets the background
color of unacknowledged alarm records that "return to normal" (UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.UnAck.RTN.BackGround;
AlarmClient.AlarmColor.UnAck.RTN.BackGround = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.AlarmColor.UnAck.RTN.BackGround = Color.Blue;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 85
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmColor.UnAck.RTN.ForeGround Property
The AlarmColor.UnAck.RTN.ForeGround property is a read-write color property that gets or sets the text color of
unacknowledged alarm records that "return to normal" (UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.UnAck.RTN.ForeGround;
AlarmClient.AlarmColor.UnAck.RTN.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.AlarmColor.UnAck.RTN.ForeGround = Color.FromARGB(0,0,0);
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
AlarmQuery Property
The AlarmQuery property is a read-write string property that gets or sets the selected alarm query.
Syntax
result = AlarmClient.AlarmQuery;
AlarmClient.AlarmQuery = AlmQry;
Parameters
AlmQry
Alarm query string in format \\node\provider!group where node is optional.
Example
AlarmClient.AlarmQuery = "\intouch!GroupA";
Remarks
When a new query is selected the AlarmQuery property is updated with the selected query. The selected query
will be updated if a new query string is written to the AlarmQuery property.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 86
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
AllowColumnResize Property
The AllowColumnResize property is a read-write Boolean property that gets or sets the ability to resize the
columns at run time.
Syntax
result = AlarmClient.AllowColumnResize;
AlarmClient.AllowColumnResize = allowColResizing;
AutoResumeDuration Property
The AutoResumeDuration property is a read-write integer property that gets or sets the time in seconds after
which the grid becomes unfrozen and resumes showing alarms.
Set this value to 0 to disable auto resume.
Syntax
result = AlarmClient.AutoResumeDuration;
AlarmClient.AllowColumnResize = timeout;
AutoScroll Property
The AutoScroll property is a read-write Boolean property that gets or sets automatic scrolling to new alarms.
Syntax
result = AlarmClient.AutoScroll;
AlarmClient.AutoScroll = allowAutoscroll;
ClientMode Property
The ClientMode property is a read-write integer property that gets or sets the client mode for the Alarm Control.
Use one of the following values:
Value Client Mode
1 Current Alarms
2 Recent Alarms and Events
3 Historical Alarms
4 Historical Events
Syntax
result = AlarmClient.ClientMode;
AlarmClient.ClientMode = clientMode;
Example
AlarmClient1.ClientMode = 2;
LogMessage("Alarm client set to Recent Alarms and Events");
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 87
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
For more information, see Showing Current Alarms or Recent Alarms and Events.
ConnectStatus Property
The ConnectStatus property is a read-only string property that gets the status of the connection to the Alarm
Database.
Syntax
result = AlarmClient.ConnectStatus;
Return Value
Returns the status of the connection to the alarm database. Can be "Connected," "Not connected," or "In
progress."
Example
alive = AlarmClient1.ConnectStatus;
if alive == "Connected" then
LogMessage("The Alarm Control is currently connected to the Alarm Database");
else
LogMessage("The Alarm Control is either currently connecting to the Alarm Database or
not connected.");
endif;
ContextMenu.AckAll Property
The ContextMenu.AckAll property is a read-write Boolean property that gets or sets the appearance of the Ack
All option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckAll;
AlarmClient.ContextMenu.AckAll = AckAllVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.AckOthers Property
The ContextMenu.AckOthers property is a read-write Boolean property that gets or sets the appearance of the
Ack Others option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckOthers;
AlarmClient.ContextMenu.AckOthers = AckOthersVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.AckSelected Property
The ContextMenu.AckSelected property is a read-write Boolean property that gets or sets the appearance of the
Ack Selected option on the shortcut menu.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 88
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
result = AlarmClient.ContextMenu.AckSelected;
AlarmClient.ContextMenu.AckSelected = AckSelectedVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.AckSelectedGroups Property
The ContextMenu.AckSelectedGroups property is a read-write Boolean property that gets or sets the
appearance of the Ack Selected Groups option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckSelectedGroups;
AlarmClient.ContextMenu.AckSelectedGroups = AckSelGrpsVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.AckSelectedPriorities Property
The ContextMenu.AckSelectedPriorities property is a read-write Boolean property that gets or sets the
appearance of the Ack Selected Priorities option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckSelectedPriorities;
AlarmClient.ContextMenu.AckSelectedPriorities = AckSelPriVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.AckSelectedTags Property
The ContextMenu.AckSelectedTags property is a read-write Boolean property that gets or sets the appearance of
the Ack Selected Tags option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckSelectedTags;
AlarmClient.ContextMenu.AckSelectedTags = AckSelTagsVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.AckVisible Property
The ContextMenu.AckVisible property is a read-write Boolean property that gets or sets the appearance of the
Ack Visible option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckVisible;
AlarmClient.ContextMenu.AckVisible = AckVisVis;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 89
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
For more information, see Configuring the Run-Time Shortcut Menu..
ContextMenu.Favorites Property
The ContextMenu.Favorites property is a read-write Boolean property that gets or sets the appearance of the
Query and Filter Favorites option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Favorites;
AlarmClient.ContextMenu.Favorites = FavsVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.Freeze Property
The ContextMenu.Freeze property is a read-write Boolean property that gets or sets the appearance of the
Freeze option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Freeze;
AlarmClient.ContextMenu.Freeze = FreezeVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.Hidden Property
The ContextMenu.Hidden property is a read-write Boolean property that gets or sets the appearance of the
Hidden option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Hidden;
AlarmClient.ContextMenu.Hidden = HiddenVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.HideAll Property
The ContextMenu.HideAll property is a read-write Boolean property that gets or sets the appearance of the Hide
All option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideAll;
AlarmClient.ContextMenu.HideAll = HideAllVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 90
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
ContextMenu.HideOthers Property
The ContextMenu.HideOthers property is a read-write Boolean property that gets or sets the appearance of the
Hide Others option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideOthers;
AlarmClient.ContextMenu.HideOthers = HideOthersVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.HideSelected Property
The ContextMenu.HideSelected property is a read-write Boolean property that gets or sets the appearance of
the Hide Selected option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideSelected;
AlarmClient.ContextMenu.HideSelected = HideSelVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.HideSelectedGroups Property
The ContextMenu.HideSelectedGroups property is a read-write Boolean property that gets or sets the
appearance of the Hide Selected Groups option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideSelectedGroups;
AlarmClient.ContextMenu.HideSelectedGroups = HideSelGrpsVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.HideSelectedPriorities Property
The ContextMenu.HideSelectedPriorities property is a read-write Boolean property that gets or sets the
appearance of the Hide Selected Priorities option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideSelectedPriorities;
AlarmClient.ContextMenu.HideSelectedPriorities = HideSelPrisVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.HideSelectedTags Property
The ContextMenu.HideSelectedTags property is a read-write Boolean property that gets or sets the appearance
of the Hide Selected Tags option on the shortcut menu.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 91
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
result = AlarmClient.ContextMenu.HideSelectedTags;
AlarmClient.ContextMenu.HideSelectedTags = HideSelTagsVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.HideVisible Property
The ContextMenu.HideVisible property is a read-write Boolean property that gets or sets the appearance of the
Hide Visible option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideVisible;
AlarmClient.ContextMenu.HideVisible = HideVisVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.Requery Property
The ContextMenu.Requery property is a read-write Boolean property that gets or sets the appearance of the
Requery option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Requery;
AlarmClient.ContextMenu.Requery = RequeryVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.Reset Property
The ContextMenu.Reset property is a read-write Boolean property that gets or sets the appearance of the Reset
option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Reset;
AlarmClient.ContextMenu.Reset = ResetVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.ShelveAll Property
CntextMenu.ShelveAll is a read-write Boolean property that gets or sets the appearance of the Shelve All option
on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveAll = boolean_value;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 92
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Example
AlarmClient1.ContextMenu.ShelveAll = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveAll;
Example
dim ShlvAll as boolean;
ShlvAll = AlarmClient1.ContextMenu.ShelveAll;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.ShelveOthers Property
ContextMenu.ShelveOthers is a read-write Boolean property that gets or sets the appearance of the Shelve
Others option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveOthers = boolean_value;
Example
AlarmClient1.ContextMenu.ShelveOthers = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveOthers;
Example
dim ShlvOthrs as boolean;
ShlvOthrs = AlarmClient1.ContextMenu.ShelveOthers;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.ShelveSelected Property
ContextMenu.ShelveSelected is a read-write Boolean property that gets or sets the appearance of the Shelve
Selected option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveSelected = boolean_value;
Example
AlarmClient1.ContextMenu.ShelveSelected = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveSelected;
Example
dim ShlvSlctd as boolean;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 93
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
ShlvSlctd = AlarmClient1.ContextMenu.ShelveSelected;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.ShelveSelectedGroups Property
ContextMenu.ShelveSelectedGroups is a read-write Boolean property that gets or sets the appearance of the
Shelve Selected Groups option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveSelectedGroups = boolean_value;
Example
AlarmClient1.ContextMenu.ShelveSelectedGroups = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveSelectedGroups;
Example
dim ShlvSlctdGrp as boolean;
ShlvSlctdGrp = AlarmClient1.ContextMenu.ShelveSelectedGroups;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.ShelveSelectedPriorities Property
ContextMenu.ShelveSelectedPriorities is a read-write Boolean property that gets or sets the appearance of the
Shelve Selected Priorities option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveSelectedPriorities = boolean_value;
Example
AlarmClient1.ContextMenu.ShelveSelectedPriorities = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveSelectedPriorities;
Example
dim ShlvSlctdPri as boolean;
ShlvSlctdPri = AlarmClient1.ContextMenu.ShelveSelectedPriorities;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 94
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
ContextMenu.ShelveSelectedSeverities Property
ContextMenu.ShelveSelectedSeverities is a read-write Boolean property that gets or sets the appearance of the
Shelve Selected Severities option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveSelectedSeverities = boolean_value;
Example
AlarmClient1.ContextMenu.ShelveSelectedSeverities = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveSelectedSeverities;
Example
dim ShlvSlctdSev as boolean;
ShlvSlctdSev = AlarmClient1.ContextMenu.ShelveSelectedSeverities;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.ShelveSelectedTags Property
ContextMenu.ShelveSelectedTags is a read-write Boolean property that gets or sets the appearance of the
Shelve Selected Tags option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveSelectedTags = boolean_value;
Example
AlarmClient1.ContextMenu.ShelveSelectedTags = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveSelectedTags;
Example
dim ShlvSlctdTag as boolean;
ShlvSlctdTag = AlarmClient1.ContextMenu.ShelveSelectedTags;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.ShelveVisible Property
ContextMenu.ShelveVisible is a read-write Boolean property that gets or sets the appearance of the Shelve
Visible option appears in the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.ShelveSelectedVisible = boolean_value;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 95
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Example
AlarmClient1.ContextMenu.ShelveSelectedVisible = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.ShelveSelectedVisible;
Example
dim ShlvSlctdVis as boolean;
ShlvSlctdVis = AlarmClient1.ContextMenu.ShelveSelectedVisible;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.Sort Property
The ContextMenu.Sort property is a read-write Boolean property that gets or sets the appearance of the Sort
option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Sort;
AlarmClient.ContextMenu.Sort = SortVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.Statistics Property
The ContextMenu.Statistics property is a read-write Boolean property that gets or sets the appearance of the
Statistics option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Statistics;
AlarmClient.ContextMenu.Statistics = StatsVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.UnhideAll Property
The ContextMenu.UnhideAll property is a read-write Boolean property that gets or sets the appearance of the
Unhide All option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.UnhideAll;
AlarmClient.ContextMenu.UnhideAll = UnhideAllVis;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 96
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
ContextMenu.UnshelveAll Property
ContextMenu.UnshelveAll is read-write Boolean property that gets or sets the appearance of the Unshelve All
option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveAll = boolean_value;
Example
AlarmClient1.ContextMenu.UnshelveAll = true;
Syntax
To Get:
boolean_variable_name = AlarmClient.ContextMenu.UnshelveAll;
Example
dim ShlvAll as boolean;
ShlvAll = AlarmClient1.ContextMenu.UnshelveAll;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.UnshelveOthers Property
ContextMenu.UnshelveOthers is read-write Boolean property that gets or sets the appearance of the Unshelve
Others option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveOthers = boolean_value;
Example
AlarmClient1.ContextMenu.UnshelveOthers = true;
Syntax
To Get:
boolean_variable_name = AlarmClient.ContextMenu.UnshelveOthers;
Example
dim ShlvOthrs as boolean;
ShlvOthrs = AlarmClient1.ContextMenu.UnshelveOthers;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu.
ContextMenu.UnshelveSelected Property
ContextMenu.UnshelveSelected is read-write Boolean property that gets or sets the appearance of the Unshelve
Selected option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveSelected = boolean_value;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 97
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Example
AlarmClient1.ContextMenu.UnshelveSelected = true;
Syntax
To Get:
boolean_variable_name = AlarmClient.ContextMenu.UnshelveSelected;
Example
dim ShlvSlctd as boolean;
ShlvSlctd = AlarmClient1.ContextMenu.UnshelveSelected;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.UnshelveSelectedGroups Property
ContextMenu.UnshelveSelectedGroups is read-write Boolean property that gets or sets the appearance of the
Unshelve Selected Groups option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveSelectedGroups = boolean_value;
Example
AlarmClient1.ContextMenu.UnshelveSelectedGroups = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.UnshelveSelectedGroups;
Example
dim UnshlvSlctdGrp as boolean;
UnshlvSlctdGrp = AlarmClient1.ContextMenu.UnshelveSelectedGroups;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.UnshelveSelectedPriorities Property
ContextMenu.UnshelveSelectedPriorities is read-write Boolean property that gets or sets the appearance of the
Unshelve Selected Priorities option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveSelectedPriorities = boolean_value;
Example
AlarmClient1.ContextMenu.UnshelveSelectedPriorities = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.UnshelveSelectedPriorities;
Example
dim UnshlvSlctdPri as boolean;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 98
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
UnshlvSlctdPri = AlarmClient1.ContextMenu.UnshelveSelectedPriorities;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.UnshelveSelectedSeverities Property
ContextMenu.UnshelveSelectedSeverities is read-write Boolean property that gets or sets the appearance of the
Unshelve Selected Severities option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveSelectedSeverities = boolean_value;
Example
AlarmClient1.ContextMenu.UnshelveSelectedSeverities = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.UnshelveSelectedSeverities;
Example
dim UnshlvSlctdSev as boolean;
UnshlvSlctdSev = AlarmClient1.ContextMenu.UnshelveSelectedSeverities;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
ContextMenu.UnshelveSelectedTags Property
ContextMenu.UnshelveSelectedTags is read-write Boolean property that gets or sets the appearance of the
Unshelve Selected Tags option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveSelectedTags = boolean_value;
Example
AlarmClient1.ContextMenu.UnshelveSelectedTags = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.UnshelveSelectedTags;
Example
dim UnshlvSlctdTag as boolean;
UnshlvSlctdTag = AlarmClient1.ContextMenu.UnshelveSelectedTags;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 99
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
ContextMenu.UnshelveVisible Property
ContextMenu.UnshelveVisible is read-write Boolean property that gets or sets the appearance of the Unshelve
Visible option on the Alarm Control’s shortcut menu.
Syntax
To Set:
AlarmClient.ContextMenu.UnshelveSelectedVisible = boolean_value;
Example
AlarmClient1.ContextMenu.UnshelveSelectedVisible = true;
Syntax
To Get:
boolean_name = AlarmClient.ContextMenu.UnshelveSelectedVisible;
Example
dim UnshlvSlctdVis as boolean;
UnshlvSlctdVis = AlarmClient1.ContextMenu.UnshelveSelectedVisible;
Remarks
For more information, see Configuring the Run-Time Shortcut Menu
Database.Authentication Property
The Database.Authentication property is a read-write string property that gets or sets the authentication mode
to connect to the Alarm Database. Possible values are:
• Windows Integrated
• Windows Account
• SQL Server
The default value is "Windows Integrated".
Syntax
result = AlarmClient.Database.Authentication;
AlarmClient.Database.Authentication = AuthMode;
Example
AlarmClient.Database.Authentication = "Windows Integrated";
Remarks
For more information, see Showing Historical Alarms and/or Events.
Database.Name Property
The Database.Name property is a read-write string property that gets or sets the name of the Alarm Database.
The default value is "WWALMDB". WWALMDB is the name of the InTouch Database and A2ALMDB is the name
of the ArchestrA Database.
If you change the Database.Name property at run time, you need to call the Connect method to connect to the
new alarm database.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 100
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
result = AlarmClient.Database.Name;
AlarmClient.Database.Name = AlmDBName;
Remarks
For more information, see Showing Historical Alarms and/or Events.
Database.Password Property
The Database.Password property is a read-write string property that gets or sets the password associated with
the user name to connect to the Alarm Database.
Syntax
result = AlarmClient.Database.Password;
AlarmClient.Database.Password = Psswrd;
Remarks
For more information, see Showing Historical Alarms and/or Events
Database.ServerName Property
The Database.ServerName property is a read-write string property that gets or sets the name of the server that
hosts the Alarm Database.
Syntax
result = AlarmClient.Database.ServerName;
AlarmClient.Database.ServerName = SrvName;
Remarks
For more information, see Showing Historical Alarms and/or Events.
Database.UserID Property
The Database.UserID property is a read-write string property that gets or sets the name of user authorized to
access the Alarm Database.
Syntax
result = AlarmClient.Database.UserID;
AlarmClient.Database.UserID = UserName;
Remarks
For more information, see Showing Historical Alarms and/or Events.
DisableFileBrowsing Property
Specify True to get/set the option to access the file browser when importing or exporting files.
Syntax
result = AlarmClient.DisableFileBrowsing;
AlarmClient.DisableFileBrowsing = boolean_value;
Example
AlarmClient.DisableFileBrowsing = true;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 101
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
Default is True.
Domain Property
The Domain property is a read-write string property that gets or sets the domain name of the user to connect to
the Alarm Database.
Syntax
result = AlarmClient.Domain;
AlarmClient.Domain = DomName;
Remarks
For more information, see Showing Historical Alarms and/or Events.
Enabled Property
The Enabled property is a read-write Boolean property that gets or sets the enablement of Alarm Control. When
the Alarm Control is disabled, alarm records are still updated, but the operator cannot interact with the control.
The operator can still use scripting to interact with the control.
Syntax
result = AlarmClient.Enabled;
AlarmClient.Enabled = EnableFlag;
EventColor.BackGround Property
The EventColor.BackGround property is a read-write color property that gets or sets the background color of
event records.
Syntax
Color = AlarmClient.EventColor.BackGround;
AlarmClient.EventColor.BackGround = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.EventColor.BackGround = Color.Blue;
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 102
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
EventColor.ForeGround Property
The EventColor.ForeGround property is a read-write color property that gets or sets the text color of event
records.
Syntax
Color = AlarmClient.EventColor.ForeGround;
AlarmClient.EventColor.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.EventColor.ForeGround = Color.Blue;
Remarks
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
Favorite Property
The Favorite property is a read-write string property that gets or sets the name of the current query filter
favorite.
Syntax
QueryFilterName = AlarmClient.Favorite;
AlarmClient.Favorite = QueryFilterName;
Parameters
QueryFilterName
The name of a query filter favorite.
Example
The following example sets the current Alarm Control grid to the Query Filter Favorite with the name "All Hi
Priority Alarms".
AlarmClient1.Favorite = "All Hi Priority Alarms";
Remarks
You can also use this property to reset the currently used query filter to its default with the following script:
AlarmClient.Favorite = "Default";
The Favorite property executes as a query to retain previous release default behavior. If you want to execute the
query/filter as a filter only, then use the RunQuery() method.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 103
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
FlashUnAckAlarms Property
The FlashUnAckAlarms property is a read-write Boolean property that gets or sets the flashing of
unacknowledged alarm records.
Syntax
result = AlarmClient.FlashUnAckAlarms;
AlarmClient.FlashUnAckAlarms = FlashUnAckRecs;
Remarks
For more information, see Set Unacknowledged Alarms to Flash.
GridColor Property
The GridColor property is a read-write color property that gets or sets the color of the grid lines.
Syntax
Color = AlarmClient.GridColor;
AlarmClient.GridColor = Color;
Parameters
Color
Color of the grid lines.
Example
AlarmClient1.GridColor = Color.Black;
Remarks
For more information, see Setting Heading, Grid, and Window Color.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
HeadingColor.BackGround Property
The HeadingColor.BackGround property is a read-write color property that gets or sets the background color of
the heading.
Syntax
Color = AlarmClient.HeadingColor.BackGround;
AlarmClient.HeadingColor.BackGround = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.HeadingColor.BackGround = Color.Blue;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 104
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
For more information, see Setting Heading, Grid, and Window Color.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
HeadingColor.ForeGround Property
The HeadingColor.ForeGround property is a read-write color property that gets or sets the text color of the
heading.
Syntax
Color = AlarmClient.HeadingColor.ForeGround;
AlarmClient.HeadingColor.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.HeadingColor.ForeGround = Color.Blue;
Remarks
For more information, see Setting Heading, Grid, and Window ColorSetting Heading, Grid, and Window Color.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
Height Property
The Height property is a read-write integer property that gets or sets the height of the Alarm Control in pixels.
Syntax
result = AlarmClient.Height;
AlarmClient.Height = Hght;
HiddenAlarms Property
The HiddenAlarms property is a read-only integer property that gets the number of hidden alarms.
Syntax
Result = AlarmClient.HiddenAlarms;
Example
LogMessage("There are " + Text(AlarmClient1.HiddenAlarms,"#")+" hidden alarms.");
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 105
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
HideErrors Property
The HideErrors property is a read-write Boolean property that gets or sets the Hide Errors option.
• TRUE - Run-time errors, warnings, and status messages are written to the ArchestrA Logger. No pop-ups
appear
• FALSE - Run-time errors, warnings, and status messages pop-up and are also written to the ArchestrA Logger
Syntax
result = AlarmClient.HideErrors;
AlarmClient.HideErrors = SilentMode;
Remarks
For more information, see Hide Errors, Warnings, and Status Messages.
IsFrozen Property
The IsFrozen property is a read-only Boolean property that can be used to identify whether the alarm client
control is in a Frozen mode.
When the value is True, the control is frozen, else the control is not frozen.
Remarks
For more information, see Freeze and Unfreeze the Alarm Control Grid.
Example
Dim FR as boolean;
FR = AlarmClient1.IsFrozen;
MaxDatabaseRecords Property
The MaxDatabaseRecords property is a read-write integer property that gets or sets the maximum records
retrieved from the database that will appear in each page of the Alarm Control Client at one instance. The valid
range is 1 to 32766.
Syntax
result = AlarmClient.MaxDatabaseRecords;
AlarmClient.MaxDatabaseRecords = MaxRecs;
Remarks
This property is for Historical Alarms, Historical Events, or Historical Alarms and Events modes. For more
information, see Showing Historical Alarms and/or Events.
MaxTotalRetrievalCount Property
The MaxTotalRetrievalCount property is a read-write integer property that gets or sets the maximum total
number of records that will be retrieved from the database.
Syntax
result = AlarmClient.MaxTotalRetrievalCount;
AlarmClient.MaxTotalRetrievalCount = MaxRecs;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 106
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
This property is for Historical Alarms, Historical Events, or Historical Alarms and Events modes. If the property is
set to a positive integer, in historical mode Alarm Client Control will retrieve up to MaxTotalRetrievalCount of
alarm records. For example, there are 1000 alarm records in the database. If Set MaxTotalRetrievalCount = 500,
then only top 500 alarm records will be returned. If Set MaxTotalRetrievalCount = 2000, then all 1000 alarm
records will be returned.
NewAlarmEventMode Property
The NewAlarmEventMode property is an read-write integer property that gets or sets the trigger behavior of the
New Alarm event.
Syntax
EMode = AlarmClient.NewAlarmEventMode;
AlarmClient.NewAlarmEventMode = EMode;
Parameters
EMode
Event mode with following possible values:
Value Description
NoRecordsMessage.Enabled Property
The NoRecordsMessage.Enabled property is a read-write Boolean property that gets or sets the visibility of a
custom message when no alarm records are available.
Syntax
result = AlarmClient.NoRecordsMessage.Enabled;
AlarmClient.NoRecordsMessage.Enabled = showMessage;
Example
AlarmClient1.NoRecordsMessage.Enabled = 1;
AlarmClient1.NoRecordsMessage.Message = "There are no alarm records available";
Remarks
Use this property in combination with the NoRecordsMessage.Message property.
NoRecordsMessage.Message Property
The NoRecordsMessage.Message property is a read-write string property that gets or sets the custom message
text when no alarm records are available and the NoRecordsMessage.Enabled property value is TRUE.
Syntax
result = AlarmClient.NoRecordsMessage.Message;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 107
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
AlarmClient.NoRecordsMessage.Message = myCustomMessage;
Example
AlarmClient1.NoRecordsMessage.Enabled = 1;
AlarmClient1.NoRecordsMessage.Message = "There are no alarm records available";
Remarks
Use this property in combination with the NoRecordsMessage.Enabled property.
QueryFilters.SelectedFilters Property
The QueryFilters.SelectedFilters property is a read-only String property used to get the filter selecting status.
For example, an alarm client control with the following filters selected, the QueryFilters.SelectedFilters property
will return value of “F1, F3”.
QueryStartup Property
The QueryStartup property is a read-write Boolean property that gets or sets or sets the automatic update of the
Alarm Control on startup.
Syntax
result = AlarmClient.QueryStartup;
AlarmClient.QueryStartup = AutoQry;
Remarks
For more information, see Automatic Query for Alarms on Start Up.
RequiresShelveSignature Property
The RequiresShelveSignature property is a read-write Boolean property to specify if a user signature is required
to shelve an alarm.
Syntax
To Set:
AlarmClient.RequiresShelveSignature = boolean_value;
Example
AlarmClient1.RequiresShelveSignature = true;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 108
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
To Get:
boolean_variable_name> = AlarmClient.RequiresShelveSignature;
Example
dim bIsShlvSigned as boolean;
bIsShlvSigned = AlarmClient1.RequiresShelveSignature;
Remarks
For more information, see Configuring the Alarm Control to Require a SHELVE Signature.
RetainHidden Property
The RetainHidden property is a read-write Boolean property that gets or sets the retention of hidden alarms or
events when the alarm query or query filter to retrieve records changes at run time.
Syntax
result = AlarmClient.RetainHidden;
AlarmClient.RetainHidden = RetainHddn;
Remarks
For more information, see Retain Hiding when Changing Alarm Query Filter.
RowCount Property
The RowCount property is a read-only integer property that gets the number of records shown in the Alarm
Control grid.
For current alarms (and recent alarms and events), the RowCount property value is always the same as the
TotalRowCount property value.
For historical alarms, if the Alarm Control retrieves more alarm records than specified by the
MaxDatabaseRecords property value, it splits these into multiple pages.
The RowCount property shows how many alarm records are currently shown on the current page. The
RowCount property value is the same as the MaxDatabaseRecords property value, with exception of the last
page.
Syntax
Result = AlarmClient.RowCount;
Example
NRows = AlarmClient1.RowCount;
LogMessage("There are " + Text(NRows, "#") + " alarm records on the retrieved page.");
RowSelection Property
The RowSelection property is a read-write string property that determines if row selection is allowed at run time.
The following values are possible:
Value Description
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 109
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Value Description
SaveUserQueryFilter Property
Gets/Sets the option to save runtime user queries and filters. If false, then user modified queries or filters will
not be saved to file. If true, user modification will be saved to file.
Syntax
result = AlarmClient.SaveUserQueryFilter;
AlarmClient.SaveUserQueryFilter = boolean_true;
Example
AlarmClient.SaveUserQueryFilter = true;
Remarks
Default is True.
SelectedCount Property
The SelectedCount property is a read-only integer property that gets the total number of selected alarm records.
Syntax
Result = AlarmClient.SelectedCount;
Return Value
Returns the number of selected alarm records.
Example
NSelRows = AlarmClient1.SelectedCount;
If NSelRows > 5 Then
LogMessage("There are more than 5 rows selected.");
Endif;
ShelveColor.BackGround Property
ShelveColor.BackGround is an integer property to set the background color of shelved alarm records in the Alarm
Control.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 110
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
Color= AlarmClient.ShelveColor.Background;
AlarmClient.ShelveColor.BackGround = Color
Parameters
Color
Background color of a shelved alarm record.
Example
AlarmClient1.ShelveColor.BackGround = Color.FromARGB(255,0,128);
Remarks
For more information, see Setting Heading, Grid, and Window Color.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
ShelveColor.ForeGround Property
ShelveColor.ForeGround is an integer property to set the foreground or text color of shelved alarm records in the
Alarm Control.
Syntax
Color= AlarmClient.ShelveColor.Foreground;
AlarmClient.ShelveColor.Foreground = Color
Parameters
Color
Foreground color of a shelved alarm record.
Example
AlarmClient1.ShelveColor.Foreground = Color.FromARGB(255,255,255);
Remarks
For more information, see Setting Heading, Grid, and Window Color.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
ShowContextMenu Property
The ShowContextMenu property is a read-write Boolean property that gets or sets the ability to open the
shortcut menu at run time.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 111
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
result = AlarmClient.ShowContextMenu;
AlarmClient.ShowContextMenu = ContxtMnuAvail;
ShowGrid Property
The ShowGrid property is a read-write Boolean property that gets or sets the appearance of grid lines.
Syntax
result = AlarmClient.ShowGrid;
AlarmClient.ShowGrid = showGrid;
ShowGroupByHeader Property
The ShowGroupByHeader property is a read-write Boolean property to show or hide the column grouping label
at the top of the run-time Alarm Control in the historical mode. Set the ShowGroupByHeader property to true to
show the label "Drag a column header here to group by that column".
Syntax
result = AlarmClient.ShowGroupByHeader;
AlarmClient.ShowGroupByHeader = ShowGroupByHeader;
ShowHeading Property
The ShowHeading property is a read-write Boolean property that gets or sets the visibility of the grid heading at
run time.
Syntax
result = AlarmClient.ShowHeading;
AlarmClient.ShowHeading = showHeading;
ShowStatusBar Property
The ShowStatusBar property is a read-write Boolean property that gets or sets the visibility of the status bar at
run time.
Syntax
result = AlarmClient.ShowStatusBar;
AlarmClient.ShowStatusBar = showStatusBar;
SortColumn.First Property
The SortColumn.First property is a read-write string property that gets or sets the first sort column.
The default value is "Time (LCT)".
Syntax
result = AlarmClient.SortColumn.First;
AlarmClient.SortColumn.First = sortByFirst;
Example
AlarmClient1.SortColumn.First = "Class";
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 112
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
Use this property in connection with the SortOrder.First to determine the sorting direction.
SortColumn.Second Property
The SortColumn.Second property is a read-write string property that gets or sets the second sort column.
The default value is blank.
Syntax
result = AlarmClient.SortColumn.Second;
AlarmClient.SortColumn.Second = sortBySecond;
Example
AlarmClient1.SortColumn.Second = "Type";
Remarks
Use this property in connection with the SortOrder.Second to determine the sorting direction.
SortColumn.Third Property
The SortColumn.Third property is a read-write string property that gets or sets the third sort column.
The default value is blank.
Syntax
result = AlarmClient.SortColumn.Third;
AlarmClient.SortColumn.Third = sortByThird;
Example
AlarmClient1.SortColumn.Third = "State";
Remarks
Use this property in connection with the SortOrder.Third to determine the sorting direction.
SortColumn.Fourth Property
The SortColumn.Fourth property is a read-write string property that gets or sets the fourth sort column.
The default value is blank.
Syntax
result = AlarmClient.SortColumn.Fourth;
AlarmClient.SortColumn.Fourth = sortByFourth;
Example
AlarmClient1.SortColumn.Fourth = "Priority";
Remarks
Use this property in connection with the SortOrder.Fourth to determine the sorting direction.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 113
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
SortOrder.First Property
The SortOrder.First property is a read-write Boolean property that gets or sets the sorting direction of the first
sort column. The following values are possible:
Value Description
SortOrder.Second Property
The SortOrder.Second property is a read-write Boolean property that gets or sets the sorting direction of the
second sort column. The following values are possible:
Value Description
SortOrder.Third Property
The SortOrder.Third property is a read-write Boolean property that gets or sets the sorting direction of the third
sort column. The following values are possible:
Value Description
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 114
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
result = AlarmClient.SortOrder.Third;
AlarmClient.SortOrder.Third = sortDirThird;
Remarks
Use this property in connection with the SortColumn.Third to determine which column is sorted.
SortOrder.Fourth Property
The SortOrder.Fourth property is a read-write Boolean property that gets or sets the sorting direction of
the fourth sort column. The following values are possible:
Value Description
Time.Format Property
The Time.Format property is a read-write string property that gets or sets the date and time formats of the alarm
records in the Alarm Control.
You can either use the .NET time format or the default format. Set the Time.Type property to determine which
time format type to use.
Syntax
result = AlarmClient.Time.Format;
AlarmClient.Time.Format = TmFormat;
Example
This example shows the time format in French format (day/month/year) using the .NET datetime type.
AlarmClient1.Time.Type = 1;
AlarmClient1.Time.Format = "dd/MM/yyyy";
Remarks
For more information about the .NET time format, see Set a .NET DateTime Format.
For more information about the default time format, see Set a Time Format.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 115
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Time.Type Property
The Time.Type property is a read-write Boolean property that gets or sets the time format type of the alarm
records. The following values are possible:
Value Description
Syntax
result = AlarmClient.Time.Type;
AlarmClient.Time.Type = TmType;
Example
This example shows the time format in German format (day.month.year) using the default datetime type.
AlarmClient1.Time.Type = 0;
AlarmClient1.Time.Format = "%d.%m.%Y %H:%M:%S";
Remarks
For more information about the .NET time format, see Set a .NET DateTime Format.
For more information about the default time format, see Set a Time Format.
TimeSelector Property
The TimeSelector property gets the Time Range Picker object used in the Alarm Control. You can use it in
scripting to shorten the code using its properties and methods.
For the individual properties and methods, see the following properties, or the methods starting at
TimeSelector.SetStartAndEndTimes() Method.
Example 1
dim TRP as object;
TRP = AlarmClient1.TimeSelector;
Timeselect = TRP;
StartDate = TRP.StartDate;
EndDate = TRP.EndDate;
duration = TRP.TimeDuration;
Example 2
dim TRP as object;
TRP = AlarmClient1.TimeSelector;
TRP.SetStartAndEndTimes(StartDate, EndDate, Duration);
TimeSelector.DurationMS Property
The TimeSelector.DurationMS property is a read-write integer property that gets the time duration measured in
milliseconds.
The start time of the Alarm control (TimeSelector.StartDate) is calculated as the end time (TimeSelector.EndDate)
minus the new time duration (TimeSelector.DurationMS).
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 116
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
When you set the value of the TimeSelector.DurationMS property, the TimeSelector.TimeDuration property is set
to 0.
The default value is 3600000.
Syntax
result = AlarmClient.TimeSelector.DurationMS;
AlarmClient.TimeSelector.DurationMS = Value;
Example
AlarmClient1.TimeSelector.DurationMS = 1800000;
// The Alarm Control now retrieves alarms from the last 30 minutes.
TimeSelector.EndDate Property
The TimeSelector.EndDate property is a read-only string property that gets the end date and time of the Alarm
Control.
The default value is the time the Alarm Control is placed on the canvas. If the Update to Current Time option is
enabled, the TimeSelector.EndDate property is updated with the current time.
Note: To set the end date and time of the Alarm Control, use the TimeSelector.SetStartAndEndTimes() Method.
Syntax
result = AlarmClient.TimeSelector.EndDate;
Example
LogMessage(AlarmClient1.TimeSelector.EndDate);
TimeSelector.StartDate Property
The TimeSelector.StartDate property is a read-only string property that gets the start date and time of the Alarm
Control.
The default value is the time the Alarm Control is placed on the canvas. If the Update to Current Time option is
enabled, the TimeSelector.StartDate property is updated as current time minus duration.
Note: To set the start date and time of the Alarm Control, use the TimeSelector.SetStartAndEndTimes() Method.
Syntax
result = AlarmClient.TimeSelector.StartDate;
Example
LogMessage(AlarmClient1.TimeSelector.StartDate);
TimeSelector.TimeDuration Property
The TimeSelector.TimeDuration property is a read-write integer property that gets or sets the time duration. The
start time of the Alarm control (TimeSelector.StartDate) is calculated as the end time (TimeSelector.EndDate)
minus the new time duration.
The TimeSelector.TimeDuration can have one of the following values:
Value Description
0 Custom
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 117
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Value Description
17 One minute.
18 Five minutes.
19 Ten minutes.
20 15 minutes.
21 30 minutes.
22 One hour.
23 Two hours.
24 Four hours.
25 Eight hours.
26 12 hours.
27 24 hours.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 118
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Value Description
28 Two days.
29 One week.
30 Two weeks.
31 One month.
32 Three months.
TimeZone.TimeZone Property
The TimeZone.TimeZone property is a read-write string property that gets or sets the time zone of the Alarm
Control.
The default value depends on the current setting of the operating system.
If you want to show time stamps using the local time of the computer, set the TimeZone.TimeZone property to
an empty string.
Syntax
result = AlarmClient.TimeZone.TimeZone;
AlarmClient.TimeZone.TimeZone = TimeZone;
Example
AlarmClient1.TimeZone.TimeZone = "(GMT-09:00) Alaska";
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 119
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Remarks
For more information, see Setting Time Zone and Format.
TotalRowCount Property
The TotalRowCount property is a read-only integer property that gets the total number of alarm records in the
Alarm Control.
For current alarms (and recent alarms and events), the RowCount property value is always the same as the
TotalRowCount property value.
For historical alarms, if the Alarm Control retrieves more alarm records than specified by the
MaxDatabaseRecords property value, it splits these into multiple pages.
The RowCount property value shows how many alarm records are currently shown on the current page, whereas
the TotalRowCount property value shows how many alarm records are retrieved from the alarm database.
Syntax
Result = AlarmClient.TotalRowCount;
Return Value
Returns the end date and time of the Alarm Control in historical mode.
Example
NTRows = AlarmClient1.TotalRowCount;
If (NTRows > 1000) then
LogMessage("More than 1000 records are currently in the Alarm Control");
Endif;
UnAckAlarms Property
The UnAckAlarms property is a read-only integer property that gets the number of unacknowledged alarm
records in the Alarm Control.
Syntax
Result = AlarmClient.UnackAlarms;
Return Value
Returns the number of unacknowledged alarm records in the Alarm Control.
Example
NUnack = AlarmClient1.UnAckAlarms;
If NUnack > 10 Then
LogMessage("There are more than 10 unacknowledged alarms in the grid!");
Endif;
UpdateToCurrentTime Property
The UpdateToCurrentTime property is a read-write Boolean property that gets or sets the Update to Current
Time option.
If you set this property to TRUE, the Alarm Control end time is set to the current time and the start time is
calculated as the difference of end time and duration. Whenever you refresh the Alarm Control, the end time is
set as current time.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 120
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
If you set this property to FALSE, the Alarm Control uses the end time, duration, and start time as defined by the
Time Range Picker control.
The default value is TRUE.
Syntax
result = AlarmClient.UpdateToCurrentTime;
AlarmClient.UpdateToCurrentTime = UpdToCurrTime;
Example
AlarmClient1.UpdateToCurrentTime = 1;
AlarmClient1.Requery();
Remarks
For more information, see Showing Historical Alarms and/or Events.
UserQueryFilterFilePath Property
Gets/Sets the file path of the runtime user queries and filters. The file path excludes the file name.
Syntax
result = AlarmClient.UserQueryFilterFilePath;
AlarmClient.UserQueryFilterFilePath = myUserQueryFilterFilePath;
Example
AlarmClient1.UserQueryFilterFilePath = "C:\Users\Public\AppData\Wonderware";
Remarks
Default is %Userprofile%\Wonderware;
Visible Property
The Visible property is a read-write Boolean property that gets or sets the visibility of the Alarm Control.
Syntax
result = AlarmClient.Visible;
AlarmClient.Visible = Boolean;
Width Property
The Width property is a read-write integer property that gets or sets the width of the Alarm Control in pixels.
Syntax
result = AlarmClient.Width;
AlarmClient.Width = Wdth;
WindowColor Property
The WindowColor property is a read-write color property that gets or sets the color of the Alarm Control
background.
Syntax
Color = AlarmClient.WindowColor;
AlarmClient.WindowColor = Color;
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 121
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Parameters
Color
Color of background.
Example
AlarmClient1.WindowColor = Color.FromARGB(240,200,198);
Remarks
For more information, see Setting Heading, Grid, and Window Color.
Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined
color name, FromARGB(), FromKnownColor(), and FromName().
For a list of the .NET color names and the hexadecimal codes, see .NET Colors.
For more information on the color methods, see the online Microsoft documentation for .NET Framework
Development.
X Property
The X property is a read-write integer property that gets or sets the horizontal position of the Alarm Control in
relation to the left edge of the InTouch window in which it appears.
Syntax
result = AlarmClient.X;
AlarmClient.X = LeftPos;
Y Property
The Y property is a read-write integer property that gets or sets the vertical position of the Alarm Control in
relation to the top edge of the InTouch window in which it appears.
Syntax
result = AlarmClient.Y;
AlarmClient.Y = TopPos;
AboutBox() Method
The AboutBox method shows the About dialog box of the Alarm Control.
Syntax
AlarmClient.AboutBox();
Ack.All() Method
The Ack.All method acknowledges all alarms in the Alarm Control, including those not shown.
Syntax
AlarmClient.Ack.All(AckComment);
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 122
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.All("Alarm is acknowledged");
Ack.Group() Method
The Ack.Group method acknowledges all alarms for a given alarm source and group.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Ack.Group(AlarmSource, Group, AckComment);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.Group("\\machine1\galaxy", "Area_001", "All alarms in Area_001
acknowledged");
Ack.Priority() Method
The Ack.Priority method acknowledges all alarms for a given alarm source, group, and priority range.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Ack.Priority(AlarmSource, Group, FromPriority, ToPriority, AckComment);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 123
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
AckComment
A string indicating the alarm acknowledgement comment.
Example
GrpName = "ValveGroup";
AlarmClient1.Ack.Priority("\intouch", GrpName, 250, 500, "All local InTouch alarms in the
ValveGroup alarm group with priorities from 250 to 500 are now acknowledged.");
Ack.Selected() Method
The Ack.Selected method acknowledges all selected alarms.
Syntax
AlarmClient.Ack.Selected(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.Selected("This selected alarm is acknowledged");
Ack.SelectedGroup() Method
The Ack.SelectedGroup method acknowledges all alarms that have the same alarm sources and groups as one or
more selected alarms.
Syntax
AlarmClient.Ack.SelectedGroup(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.SelectedGroup("Alarm acknowledged");
Ack.SelectedPriority () Method
The Ack.SelectedPriority method acknowledges all alarms that have the same alarm sources, groups, and within
the priority ranges as one or more selected alarms.
Syntax
AlarmClient.Ack.SelectedPriority(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.SelectedPriority("Alarm acknowledged");
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 124
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Ack.SelectedTag() Method
The Ack.SelectedTag method acknowledges all alarms that have the same alarm sources, groups, tags, and
within the priority ranges as one or more selected alarms.
Syntax
AlarmClient.Ack.SelectedTag(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.SelectedTag("Alarm acknowledged");
Ack.Tag() Method
The Ack.Tag method acknowledges all alarms for a given alarm source, group, tag name, and priority range.
The alarm source, group names, and tag names are case-insensitive.
Syntax
AlarmClient.Ack.Tag(AlarmSource, Group, Tag, FromPriority, ToPriority, AckComment);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Tag
The name of the alarm tag. For example, ValveTag1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
AckComment
A string indicating the alarm acknowledgement comment.
Example
AckComment = "All alarm client records of the attribute Valve17 in the group (area)
Vessel_25B of the galaxy on machine25 with priorities from 1 to 99 are now acknowledged.";
AlarmClient1.Ack.Tag("\\machine25\galaxy", "Vessel_25B", "Valve17", 1, 99, AckComment);
Ack.Visible() Method
The Ack.Visible method acknowledges all alarms currently visible in the Alarm Control.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 125
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
AlarmClient.Ack.Visible(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.Visible("Alarm acknowledged");
Connect() Method
The Connect method connects the Alarm Control to the Alarm Database.
Syntax
AlarmClient.Connect();
Disconnect() Method
The Disconnect method disconnects the Alarm Control from the Alarm Database.
Syntax
AlarmClient.Disconnect();
Favorites.Export() Method
The Favorites.Export method exports the list of query and filter favorites list to an XML file.
Syntax
AlarmClient.Favorites.Export(FilePath, FileName);
Parameters
FilePath
Name of the path to export the query and filter favorites file.
FileName
Name of the query and filter favorites file to export.
Example
AlarmClient1.Favorites.Export("c:\", "MyFavorites.xml");
Favorites.Import() Method
The Favorites.Import method imports the list of query and filter favorites list from an XML file. You can either
overwrite the existing query and filter favorites with the new favorites, or append them.
Syntax
AlarmClient.Favorites.Import(FilePath, FileName, OverwriteAppend);
Parameters
FilePath
Name of the path to the query and filter favorites file to import.
FileName
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 126
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
FreezeDisplay() Method
The FreezeDisplay method freezes or unfreezes the Alarm Control. The following values are possible:
Value Description
Syntax
AlarmClient.FreezeDisplay(FreezeFlag);
Parameters
FreezeFlag
Boolean value or expression (TRUE = freeze control, FALSE = unfreeze control)
Example
AlarmClient1.FreezeDisplay($hour > 17 OR $hour<9 );
LogMessage("The Alarm Control is frozen between 6 PM and 8 AM.");
GetItem() Method
The GetItem method returns the data at the given row and column. The row is given as a zero-based index. You
need to specify 0 to retrieve data from the 1st row. The column name can either be the original column name, or
the displayed column name.
Syntax
Result = AlarmClient.GetItem(RowNumber, ColumnName);
Parameters
RowNumber
An integer row number for the alarm record containing the value you want to fetch.
ColumnName
Name of the column.
Return Value
Returns the data at the given row and column as a string value.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 127
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Example
Data1 = AlarmClient1.GetItem(5, "Current Value");
LogMessage("The current value of the 6th alarm record is " + Data1);
Remarks
To get alarm record data from the currently selected row in a given column name, use the GetSelectedItem
method.
GetLastError() Method
The GetLastError method returns the last error message. This is useful if the Hide Errors option is selected.
Syntax
ErrMsg = AlarmClient.GetLastError();
Return Value
Returns the last error message.
Example
ErrMsg = AlarmClient1.GetLastError();
ComboBox1.AddItem(ErrMsg);
GetSelectedItem() Method
The GetSelectedItem method returns the data at the currently selected row and specified column. The column
name can either be the original column name, or the displayed column name.
Syntax
Result = AlarmClient.GetSelectedItem(ColumnName);
Parameters
ColumnName
Name of the column.
Return Value
Returns the data in the currently selected row and specified column as a string value.
Example
Data2 = AlarmClient1.GetSelectedItem ("State");
LogMessage("The current state of the selected alarm record is " + Data2);
Remarks
To get alarm record data from a given column name and row index, use the GetItem method.
Hide.All() Method
The Hide.All method hides all current alarms in the Alarm Control, including future alarms.
Syntax
AlarmClient.Hide.All();
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 128
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Hide.Group() Method
The Hide.Group method hides all alarms for a given alarm source and group.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Hide.Group(AlarmSource, Group);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Example
AlarmClient1.Hide.Group("\\machine1\galaxy", "Area_001");
LogMessage("All alarms in Area_001 hidden.");
Hide.Priority() Method
The Hide.Priority method hides all alarms for a given alarm source, group, and priority range.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Hide.Priority(AlarmSource, Group, FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
Example
GrpName = "ValveGroup";
AlarmClient1.Hide.Priority("\intouch", GrpName, 250, 500);
LogMessage("All local InTouch alarms in the ValveGroup alarm group with priorities from
250 to 500 are now hidden.");
Hide.Selected() Method
The Hide.Selected method hides all selected alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 129
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
AlarmClient.Hide.Selected();
Hide.SelectedGroup() Method
The Hide.SelectedGroup method hides all alarms that have the same alarm sources and groups as one or more
selected alarms.
Syntax
AlarmClient.Hide.SelectedGroup();
Hide.SelectedPriority() Method
The Hide.SelectedPriority method hides all alarms that have the same alarm sources, groups, and within the
priority ranges as one or more selected alarms.
Syntax
AlarmClient.Hide.SelectedPriority();
Hide.SelectedTag() Method
The Hide.SelectedTag method hides all alarms that have the same alarm sources, groups, tag names, and within
the priority ranges as one or more selected alarms.
Syntax
AlarmClient.Hide.SelectedTag();
Remarks
None
Hide.Tag() Method
The Hide.Tag method hides all alarms for a given alarm source, group, tag name, and priority range.
The alarm source, group name, and tag names are case-insensitive.
Syntax
AlarmClient.Hide.Tag(AlarmSource, Group, Tag, FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Tag
The name of the alarm tag. For example, ValveTag1.
FromPriority
Starting priority of alarms. For example, 100.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 130
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
ToPriority
End priority of alarms. For example, 900.
Example
AlarmClient1.Hide.Tag("\\machine25\galaxy", "Vessel_25B", "Valve17", 1, 99);
LogMessage("All alarm client records of the attribute Valve17 in the group (area)
Vessel_25B of the galaxy on machine25 with priorities from 1 to 99 are now hidden.");
Hide.Visible() Method
The Hide.Visible method hides all alarms currently shown in the Alarm Control.
Syntax
AlarmClient.Hide.Visible();
LoadQueryFilterFile
Load from an xml file with query and filter favorites entries with different override options. Return false for any
error.
Syntax
AlarmClient.LoadQueryFilterFile(FilePath, OverrideOption);
Parameters
FilePath
Name of the path to the query filter favorites file to import.
OverrideOption
• Append: Add to the query and filter favorites. If a duplicate entry is already present, it will not append.
• Overwrite: Delete all current query and filter favorite entries and add the new entries from the file.
• Replace: Append and replace any duplicated entries with the contents from the file.
Example
AlarmClient. LoadQueryFilterFile("c:\users\public\file1.xml","Append")
MoveWindow() Method
The MoveWindow method scrolls the alarm records in the control in a given direction.
Syntax
AlarmClient.MoveWindow(ScrollDir, Repeat);
Parameters
ScrollDir
String indicating the direction to scroll. This parameter is case-insensitive. See the following table.
ScrollDir Description
LineDn Line down. The Repeat parameter controls the number of lines to be scrolled.
LineUp Line up. The Repeat parameter controls the number of lines to be scrolled.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 131
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
ScrollDir Description
PageDn Page down. The Repeat parameter controls the number of pages to be
scrolled.
PageUp Page up. The Repeat parameter controls the number of pages to be scrolled.
PageRt Page to the right. The Repeat parameter controls the number of pages to be
scrolled.
PageLf Page to the left. The Repeat parameter controls the number of pages to be
scrolled.
Right Scrolls right. The Repeat parameter controls the number of columns to be
scrolled.
Left Scrolls left. The Repeat parameter controls the number of columns to be
scrolled.
Home Scrolls to the top row and left most column of the control.
Repeat
Number of times to repeat the scroll action.
Example
AlarmClient1.MoveWindow("Bottom", 0);
Requery() Method
The Requery method refreshes the alarm records in the Alarm Control.
For current alarms and recent alarms and events, the control requeries the Alarm Manager. For historical alarms
or events, the control retrieves alarm records from the Alarm Database.
Syntax
AlarmClient.Requery();
Reset() Method
The Reset method resets column widths and the column order to their last known design-time settings. The
Reset method also resets the current query filter to the default query.
Syntax
AlarmClient.Reset();
ResetSortCriteria() Method
Reset the sorting criteria back to the design time settings and apply the sorting criteria.
Syntax
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 132
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
AlarmClient.ResetSortCriteria();
RunQuery() Method
Execute the query or filter available on the Alarm Client Control by name. If the ApplyAsFilter option is true, then
execute the query as a filter only. Note the following behaviors:
• If ApplyAsFilter is true, the parameter QueryName needs to be a valid Filter.
• If ApplyAsFilter is false, the parameter QueryName needs to be a valid Query.
• In all other scenarios, the RunQuery() will not execute.
Syntax
AlarmClient.RunQuery(QueryName, ApplyAsFilter);
Parameters
QueryName
The name of the query or filter available on the Alarm Client Control.
ApplyAsFilter
Specify True to execute a query as a filter using the filter criteria and retain the existing alarm subscription.
Example
AlarmClient.RunQuery("High Alarms", true);
RunQueryFromFile() Method
Execute the query or filter by name defined in a file. This does not impact the current list of queries and filters. If
ApplyAsFilter option is true, then execute the query as filter only. Note the following behaviors:
• If ApplyAsFilter is true, the parameter QueryName needs to be a valid Filter.
• If ApplyAsFilter is false, the parameter QueryName needs to be a valid Query.
• In all other scenarios, the RunQuery() will not execute.
Syntax
AlarmClient.RunQueryFromFile(FilePath, QueryName, ApplyAsFilter);
Parameters
FilePath
The file path to the query filter favorites file to execute.
QueryName
The name of the query or filter defined in the user provided file.
ApplyAsFilter
Specify True to execute a query as a filter using the filter criteria and retain the existing alarm subscription.
Example
AlarmClient.RunQueryFromFile("C:\UserQueryFilter.xml", "User High Alarms", true);
SelectFilters() Method
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 133
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
The SelectFilters() script function will apply filters to the alarm records basing on the list of filter names in the
parameter FilterNames, where each filter name is separate by comma. If FilterNames is empty, no filter will be
applied to the alarm records. Invalid filter name will be ignored.
Syntax
AlarmClient.SelectFilters(FilterNames);
Parameters
FilterNames
The name of the filters which are stored in the filter list. It can be a string constant or a string type reference.
Example
AlarmClient1.SelectFilters("F1, F3, F5");
AlarmClient1.SelectFilters(" ");
Select.All() Method
The Select.All method selects all alarms in the Alarm Control.
Syntax
AlarmClient.Select.All();
Select.Group() Method
The Select.Group method selects all alarms for a given provider and group.
Syntax
AlarmClient.Select.Group(AlarmSource, Group);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Example
AlarmClient1.Select.Group("\\machine1\galaxy", "Area_001");
LogMessage("All galaxy alarms of group Area_001 from machine1 are now selected.");
Select.Item() Method
The Select.Item method selects an alarm record at a given zero-based row number.
Syntax
AlarmClient.Select.Item(RowNumber);
Parameters
RowNumber
An integer row number for the alarm record to select. The first row in the control is 0.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 134
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Example
AlarmClient1.Select.Item(5);
LogMessage("The alarm record in the 6th row (index 5) is now selected.");
Select.Priority() Method
The Select.Priority method selects all alarms for a given alarm source, group, and priority range.
Syntax
AlarmClient.Select.Priority(AlarmSource, Group, FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
Example
GrpName = "ValveGroup";
AlarmClient1.Select.Priority("\intouch", GrpName, 250, 500);
LogMessage("All local InTouch alarms in the ValveGroup alarm group with priorities from
250 to 500 are now selected.");
Select.Tag() Method
The Select.Tag method selects all alarms for a given alarm source, group, tag name, and priority range.
Syntax
AlarmClient.Select.Tag(AlarmSource, Group, Tag, FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Tag
The name of the alarm tag. For example, ValveTag1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 135
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
SetSort() Method
The SetSort method sets the level of sorting according to the defined sort columns and sort orders.
Syntax
AlarmClient.SetSort(Level);
Parameters
Level
The level of sorting:
Value Description
Example
AlarmClient1.SetSort(2);
Remarks
Use the Show.Sort method to open the Sort dialog box instead.
SetSortCriteria() Method
Set the sorting criteria by supplying a string of which columns to sort and their order. Then apply the sort criteria.
Return false if any error.
Syntax
AlarmClient.SetSortCriteria(SortCriteriaString);
Parameters
SortCriteriaString
The string containing the sorting criteria to be executed.
The syntax of the sort criteria string is: [CriteriaName]:[1|-1];
where:
CriteriaName is the name of the sorting criteria
Colon is separator for sort order integer
Use 1 for Ascending order
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 136
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Shelve.All() Method
The Shelve.All() method shelves all active alarms shown in the Alarm Control.
Syntax
AlarmClient.Shelve.All(Duration=Duration;Reason="Reason");
Parameters
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving all active alarms shown in the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient1.Shelve.All("Duration=0.1;Reason=’Shelve all alarms’;");
Remarks
For more information about shelving alarms, see Shelving Alarms.
Shelve.Group() Method
The Shelve.Group() method shelves all alarms belonging to a specified provider and alarm group.
Syntax
AlarmClient.Shelve.Group("ProviderName", "GroupName",Duration=Duration;Reason="Reason");
Parameters
ProviderName
Node and provider name combination that specifies the origin of alarm monitoring.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 137
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms by groups shown in the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Examples
AlarmClient1.Shelve.Group("\\TankServer1\Galaxy","Area_001", Duration=0.1;Reason=" + """"
+ "Shelved"+ """" + ";");
AlarmClient1.Shelve.Group("\Galaxy","Area_001",Duration=0.1; Reason=" + """" + "Shelved"+
"""" + ";");
Remarks
For more information about specifying provider and group names, see Alarm Queries.
Shelve.Priority() Method
The Shelve.Priority() method shelves all active alarms within a specified alarm priority range that belong to the
same specified provider and alarm group.
Syntax
AlarmClient.Shelve.Priority("ProviderName","GroupName",
FromPriority,ToPriority,Duration=Duration;Reason="Reason");
Parameters
ProviderName
Node and provider name combination that specifies the origin of alarm monitoring.
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
FromPriority
Starting point of the alarm priority range (1-999). The FromPriority value must be less than the
ToPriority value.
ToPriority
Three-digit end point of the alarm priority range (2-999). The ToPriority value must be greater than the
FromPriority value.
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 138
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms by priority range that are shown in the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient1.Shelve.Priority("\Galaxy","Area_001",100,600, Duration=0.1;Reason=" + """" +
"Shelved"+ """" + ";");
Remarks
For more information about setting an alarm priority range, see Set Priority Ranges for Alarm Records.
Shelve.Selected() Method
The Shelve.Selected() method shelves one or more active alarms selected by the user from the Alarm Control.
Syntax
AlarmClient.Shelve.Selected(Duration=Duration;Reason="Reason");
Parameters
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving active alarms selected by the user from the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient.Shelve.Selected(Duration=1.0;Reason="Nuisance alarms");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
Shelve.SelectedGroup() Method
The Shelve.Selected.Group method shelves all active alarms that belong to the same alarm groups as the alarms
selected by the user from the Alarm Control.
Syntax
AlarmClient.Shelve.SelectedGroup(Duration=Duration;
Reason="Reason");
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 139
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Parameters
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms in the same group as the alarms selected by the user
from the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient.Shelve.SelectedGroup(Duration=1.0;Reason="Low severity nuisance alarms");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
Shelve.SelectedPriority() Method
The Shelve.SelectedPriority method shelves all active alarms that belong to the same alarm priority as the alarms
selected by the user from the Alarm Control.
Syntax
AlarmClient.Shelve.SelectedPriority(Duration=Duration;
Reason="Reason");
Parameters
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms in the same priority range as the alarms selected by the
user from the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient.Shelve.SelectedPriority(Duration=1.0;Reason="Low priority nuisance alarms");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 140
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Shelve.SelectedSeverity() Method
The Shelve.Selected.Severity method shelves all active alarms for a given alarm group, tag name, and severity as
the alarms selected by the user from the Alarm Control.
Syntax
AlarmClient.Shelve.SelectedSeverity(Duration=Duration;
Reason="Reason");
Parameters
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms at the same severity as the alarms selected by the user
from the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient.Shelve.SelectedSeverity(Duration=1.0;Reason="Low severity nuisance alarms");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
Shelve.SelectedTag() Method
The Shelve.SelectedTag method shelves all active alarms all active alarms for a given provider, alarm group, and
tag name as the alarms selected by the user from the Alarm Control.
Syntax
AlarmClient.Shelve.SelectedTag(Duration=Duration;
Reason="Reason");
Parameters
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms from the same tags as the alarms selected by the user
from the Alarm Control.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 141
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient.Shelve.SelectedTag(Duration=1.0;Reason="Nuisance alarms");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
Shelve.Severity() Method
The Shelve.Severity() method shelves all active alarms of a specified alarm severity that belong to the same
specified provider and alarm group.
Syntax
AlarmClient.Shelve.Severity("ProviderName","GroupName",
Severity,Duration=Duration;Reason="Reason");
Parameters
ProviderName
Node and provider name combination that specifies the origin of alarm monitoring.
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
Severity
Single-digit (1-4) alarm severity.
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms at a specified severity from the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient1.Shelve.Severity("\Galaxy","Area_001",3,
Duration=0.1;Reason=" + """" + "Shelved"+ """" + ";");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 142
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Shelve.Tag() Method
The Shelve.tag() method shelves all active alarms that originate from the same tag and belong to the same
provider and alarm group within the same alarm priority range.
Syntax
AlarmClient.Shelve.Tag("ProviderName","GroupName","Tag"
FromPriority,ToPriority,Duration=Duration;Reason="Reason");
Parameters
ProviderName
Node and provider name combination that specifies the origin of alarm monitoring.
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
Tag
Name of the tag whose active alarms have been selected to be shelved.
FromPriority
Starting point of the alarm priority range (1-998). The FromPriority value must be less than the
ToPriority value.
ToPriority
End point of the alarm priority range (2-999). The ToPriority value must be greater than the
FromPriority value.
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving alarms from the same tags.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Example
AlarmClient1.Shelve.Tag("\Galaxy","Area_002",
"UserDefined_002.Analog_003",1,999,"Duration=1.5;Reason=" + """" + "Shelved"+ """" + ";");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
Shelve.Visible() Method
The Shelve.Visible() method shelves only those alarms that are currently visible from the Alarm Control.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 143
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
AlarmClient.Shelve.Visible("Duration=<Duration
Hrs>;Reason="+"<Reason>"+"Shelved"+"<Description>"+";");
Parameters
Duration
Length of time in hours that selected alarms are shelved. Duration can be specified as an integer or a floating
point number greater than 0.
Example:
Duration=0.5
Reason
Explanation up to 200 characters for shelving all alarms that are visible from the Alarm Control.
An explanation can be delimited by double or single quotation marks. Quotation marks and back slashes (\)
can appear within the text of an explanation. If an explanation is delimited by double quotation marks, a
single quotation mark is simply a character in the string. If an explanation is delimited by single quotation
marks, a double quotation mark is simply a character in the string.
Examples
AlarmClient1.Shelve.Visible("Duration=1.0;
Reason="+""""+"Shelved"+""""+";");
Remarks
For more information about selecting alarms to shelve, see Shelving Alarms.
Show.Context() Method
The Show.Context method opens the shortcut menu at run time. This method ignores the ShowContextMenu
property setting and always shows the context menu.
Syntax
AlarmClient.Show.Context();
Show.Favorite() Method
The Show.Favorite method opens the Query Filters dialog box.
Syntax
AlarmClient.Show.Favorite();
Show.Hidden() Method
The Show.Hidden method opens the Hidden Alarms dialog box.
Syntax
AlarmClient.Show.Hidden();
Show.Sort() Method
The Show.Sort method opens the Sort dialog box.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 144
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
AlarmClient.Show.Sort();
Show.Statistics() Method
The Show.Statistics method opens the Alarm Statistics dialog box.
Syntax
AlarmClient.Show.Statistics();
TimeSelector.GetStartAndEndTimes() Method
The TimeSelector.GetStartAndEndTimes method gets the start and end times for the query.
Syntax
AlarmClient.GetStartAndEndTimes(StartTime, EndTime);
Parameters
StartTime
String attribute, custom property, or element property to retrieve the start time.
EndTime
String attribute, custom property, or element property to retrieve the end time.
Example
dim SDate as string;
dim EDate as string;
AlarmClient1.TimeSelector.GetStartAndEndTimes(SDate, EDate);
StartDate = SDate;
EndDate = EDate;
TimeSelector.RefreshTimes() Method
The TimeSelector.RefreshTimes method sets the time period for the query by updating the end time to current
time and recalculates the start time based on the new end time and duration.
If you set the Boolean parameter to TRUE, the OnChange event is triggered if the time is updated.
Only use this method, if the Update to Current Time option is cleared or the UpdateToCurrentTime property is
FALSE.
Note: This method does not work if the UpdatetoCurrentTime property value is TRUE.
Syntax
AlarmClient.TimeSelector.RefreshTimes(TriggerEvent);
Example
dtag = 1;
AlarmClient.TimeSelector.RefreshTimes(dtag);
TimeSelector.SetStartAndEndTimes() Method
The TimeSelector.SetStartAndEndTimes method sets the start and end times for a query.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 145
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
To customize start time, duration, and end time you must set the UpdateToCurrentTime property to FALSE and
specify one of the following parameter combinations:
• Start time and end time. Set the Duration parameter to 0.
• Start time and duration. Set the EndTime parameter to "".
• End time and duration. Set the StartTime parameter to "".
• Start time, duration, and end time. The Alarm Control shows an error message if start time plus duration is
not equal to end time.
Syntax
AlarmClient.SetStartAndEndTimes(StartTime, EndTime, Duration);
Parameters
StartTime
String value or expression indicating the start time.
EndTime
String value or expression indicating the end time.
Duration
Duration enum. For more information on possible values, see TimeSelector.TimeDuration Property.
Example
AlarmClient1.TimeSelector.SetStartAndEndTimes("08/31/2008 15:33:43","09/01/2009
15:33:43",0);
Toggle.All() Method
The Toggle.All method reverses the selection of all alarm records. Selected alarms are cleared, and unselected
alarms are selected.
Syntax
AlarmClient.Toggle.All();
Toggle.Item() Method
The Toggle.Item method reverses the selection of a given alarm record. If the given alarm record is selected, the
selection is cleared; otherwise, it is selected.
Syntax
AlarmClient.Toggle.Item(RowNumber);
Parameters
RowNumber
An integer row number for the alarm record to reverse the selection. The first row in the control is 0.
Example
AlarmClient1.Toggle.Item(5);
LogMessage("The selection of the alarm record in the 6th row (index 5) is now reversed.");
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 146
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
UnhideAll() Method
The UnhideAll method unhides all hidden alarms.
Syntax
AlarmClient.UnhideAll();
UnSelectAll() Method
The UnSelectAll method unselects all alarm records.
Syntax
AlarmClient.UnSelectAll();
Unshelve.All() Method
The Unshelve.All() method unshelves all alarms that are currently shelved.
Syntax
AlarmClient.Unshelve.All(Duration=0;Reason="Reason");
Parameters
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving all alarms.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient1.Unshelve.All(Duration=0;Reason="");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Unshelve.Group() Method
The Unshelve.Group() method unshelves all currently shelved alarms belonging to a specified provider and alarm
group.
Syntax
AlarmClient.Unshelve.Group("ProviderName","GroupName",
Duration=0;Reason="Reason");
Parameters
ProviderName
Node and or provider name combination that specifies the origin of alarm monitoring.
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
Duration
Duration must be set to 0 to unshelve alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 147
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Reason
Explanation up to 200 characters for unshelving all alarms belonging to a specified group and provider.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Examples
AlarmClient1.Unshelve.Group("\\TankServer1\Galaxy","Area_001",
Reason=" + """" + "Shelved"+ """" + ";");
AlarmClient1.Unshelve.Group("\Galaxy","Area_001",Reason=" + """" + "Shelved"+ """" + ";");
Remarks
For more information about specifying provider and group names, see Alarm Queries.
Unshelve.Priority() Method
The Unshelve.Priority() method unshelves currently shelved alarms within a specified alarm priority range that
belong to the same specified provider and alarm group.
Syntax
AlarmClient.Unshelve.Priority("ProviderName","GroupName",FromPriority,ToPriority,"Duration=
<Duration>;Reason="+"<Reason>"+"UnShelved"+"<Description>"+";");
Parameters
ProviderName
Node and provider name combination that specifies the origin of alarm monitoring.
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
FromPriority
Three-digit starting point of the alarm priority range. The FromPriority value must be less than the
ToPriority value.
ToPriority
Three-digit end point of the alarm priority range. The ToPriority value must be greater than the
FromPriority value.
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving all alarms belonging to a specified alarm priority range.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient1.Unshelve.Priority("\Galaxy","Area_001",100,600,"Duration=0;Reason="+""""+"UnSh
elved"+""""+";");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 148
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Unshelve.Selected() Method
The Unshelve.Selected() method unshelves currently shelved alarms selected by the user from the Alarm
Control.
Syntax
AlarmClient.Unshelve.Selected(Duration=0;Reason="Reason");
Parameters
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving alarms selected by the user.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient.Unshelve.Selected(Duration=0;Reason="Maintenance finished");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Unshelve.SelectedGroup() Method
The Unshelve.SelectedGroup() method unshelves all alarms that belong to the same provider and alarm groups
as the alarms selected by the user from the Alarm Control.
Syntax
AlarmClient.Unshelve.SelectedGroup(Duration=0;Reason="Reason");
Parameters
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving alarms that belong to the same alarm groups as the alarms
selected by the user.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient.Unshelve.SelectedGroup(Duration=0;Reason="");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Unshelve.SelectedPriority() Method
The Unshelve.SelectedPriority method unshelves all alarms within the same alarm priority range as the alarms
selected by the user from the Alarm Control.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 149
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Syntax
AlarmClient.Unshelve.SelectedPriority(Duration=0;Reason="Reason");
Parameters
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving the alarms within the same alarm priority range as the
alarms selected by the user.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient.Unshelve.SelectedPriority(Duration=0;
Reason="Maintenance finished");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Unshelve.SelectedSeverity() Method
The Unshelve.SelectedSeverity method unshelves all shelved alarms within the same alarm severities as the
alarms selected by the user from the Alarm Control.
Syntax
AlarmClient.Unshelve.SelectedSeverity(Duration=0;Reason="Reason");
Parameters
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving the shelved alarms that belong to the same alarm severities
as the alarms selected by the user.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient.Unshelve.SelectedSeverity(Duration=0;Reason="Low severity alarms");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Unshelve.SelectedTag() Method
The Unshelve.SelectedTag method unshelves all shelved alarms that originate from the same tags as the alarms
selected by the user from the Alarm Control.
Syntax
AlarmClient.Unshelve.SelectedTag(Duration=0;Reason="Reason");
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 150
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Parameters
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving the active alarms from the same tags as the alarms selected
by the user.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient.Unshelve.SelectedTag(Duration=0;Reason="");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Unshelve.Severity() Method
The Unshelve.Severity() method unshelves all shelved alarms of a specified alarm severity that belong to the
same specified provider and alarm group.
Syntax
AlarmClient.Unshelve.Severity("ProviderName","GroupName",Severity,"Duration=<Duration>;Reas
on="+"<Reason>"+"UnShelved"+"<Description>"+";");
Parameters
ProviderName
Node and provider name combination that specifies the origin of alarm monitoring.
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
Severity
Single-digit (1-4) alarm severity.
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for unshelving the active alarms of the specified severity.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient1.Unshelve.Severity("\Galaxy","Area_001",3,"Duration=0;Reason="+""""+"UnShelved"
+""""+";");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 151
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Unshelve.Tag() Method
The Unshelve.Tag() method unshelves all shelved alarms that have the same tag names from the same provider
and alarm groups and are within the same priority range.
Syntax
AlarmClient.UnShelve.Tag("ProviderName","GroupName","Tag",FromPriority,ToPriority,"Duration
=<Duration>;Reason="+"<Reason>"+"UnShelved"+"<Description>"+";");
Parameters
ProviderName
Node and provider name combination that specifies the origin of alarm monitoring.
GroupName
Alarm group or area name whose alarms are monitored by the Alarm Control.
Tag
Name of the tag whose active alarms have been selected to be unshelved.
FromPriority
Three-digit starting point of the alarm priority range. The FromPriority value must be less than the
ToPriority value.
ToPriority
Three-digit end point of the alarm priority range. The ToPriority value must be greater than the
FromPriority value.
Duration
Duration must be set to 0 to unshelve alarms.
Reason
Explanation up to 200 characters for shelving the active alarms that belong to the same alarm severities as
the alarms selected by the user.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient1.UnShelve.Tag("\Galaxy","Area_001","User_Defined_001.Attribute004.LoLo",1,999,"
Duration=0;Reason="+""""+"UnShelved"+""""+";");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Unshelve.Visible() Method
Th Unshelve.Visible() method unshelves only those alarms that are currently visible from the Alarm Control.
Syntax
AlarmClient.Unshelve.Visible("Duration=<Duration>;Reason="+"<Reason>"+"UnShelved"+"<Descrip
tion>"+";");
Parameters
Duration
Duration must be set to 0 to unshelve alarms.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 152
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Reason
Explanation up to 200 characters for unshelving the alarms currently shown from the Alarm Control.
An explanation is optional to unshelve alarms and the Reason parameter can be specified as Reason="" to
indicate a null explanation.
Example
AlarmClient1.Unshelve.Visible("Duration=0;Reason="+""""+"UnShelved"+""""+";");
Remarks
For more information about unshelving alarms, see Unshelve Alarms.
Configuring Events
You can execute an action script when the Alarm Control triggers an event. Examples of basic events are:
• Click: The user clicks the Alarm Control
• DoubleClick: The user double-clicks the Alarm Control
• Startup: The Alarm Control opens at run time
• Shutdown: The Alarm Control closes at run time
The Click, Double Click, Start up, and Shutdown events are standard for all .NET client controls. For more
information, see the Creating and Managing Industrial Graphics Users Guide.
The Alarm Control has one event of its own that is triggered when a new alarm occurs, the NewAlarm event.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 153
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
4. In the script area, type the script you want to execute when a new alarm occurs, for example:
AlertIcon.Visible = true;
5. You must also set the NewAlarmEventMode property to 1 or 2 to enable the NewAlarm event trigger. Do the
following:
a. On the Special menu, click Scripts. The Edit Scripts dialog box appears.
b. Make sure Trigger type is set to On Show.
c. In the script area, type the following:
AlarmClient1.NewAlarmEventMode = 1;
d. If you want the script to be executed every time a new alarm occurs, set the NewAlarmEventMode
property to 2 instead.
e. Click OK.
.NET Colors
The following table is an overview of the .NET color names with hexadecimal code.
Color with Hex Code Color with Hex Code Color with Hex Code
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 154
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Color with Hex Code Color with Hex Code Color with Hex Code
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 155
AVEVA™ Alarm Client Control
Chapter 4 – Scripting the Alarm Control
Color with Hex Code Color with Hex Code Color with Hex Code
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 156
Chapter 5
You can transfer the configuration of the InTouch Alarm Viewer control and the InTouch Alarm DB View control to
the configuration of the Alarm Client Control.
You can also map the InTouch alarm control properties and methods to the properties and methods of the Alarm
Client Control.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 157
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
ControlName You can rename the Alarm Client Control the same way as any other
elements on the canvas. For more information, see the Creating and
Managing Industrial Graphics User’s Guide.
Left, Top, Width, and You can directly edit the positioning options in the same way as any
Height other element on the canvas. Edit the following properties in the
Properties Editor: X, Y, Width, and Height.
Visible You can directly edit the visibility option in the same way as any other
element on the canvas. In the Properties Editor, edit the Visible
property.
Perform Query on In the Alarm Client Control, this option is called Query on Startup.
Startup You can configure this option on the Run-Time Behavior page.
Show Context In the Alarm Client Control, this option is called Show Context Menu.
Sensitive Menu You can configure this option on the Run-Time Behavior page.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 158
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
Configure Context In the Alarm Client Control, you can configure the availability of
Menus individual shortcut menu options at run-time directly on the Run-
Time Behavior page.
Use Default Ack In the Alarm Client Control, you can configure the availability of the
Comment Query Filters shortcut menu option on the Run-Time Behavior page.
Retain Suppression In the Alarm Client Control, this option is called Retain Hidden. You
can configure it on the Run-Time Behavior page.
Show Status Bar In the Alarm Client Control, you can configure the Show Grid option
on the Run-Time Behavior page.
Show Heading In the Alarm Client Control, you can configure the Show Status Bar
option on the Run-Time Behavior page.
Row Selection In the Alarm Client Control, this option is called Row Selection. You
can configure it on the Run-Time Behavior page.
Use Extended In the Alarm Client Control, this option is called Row Selection. You
Selection can configure it on the Run-Time Behavior page.
Show Grid In the Alarm Client Control, you can configure the Show Grid option
on the Run-Time Behavior page.
Retrieve Buttons In the Alarm Client Control, the retrieve buttons are not available.
The underlying grid technology handles the alarm retrieval from the
alarm database.
Silent Mode In the Alarm Client Control, this option is called Hide Errors and
Warnings. You can configure it on the Run-Time Behavior page.
Flash Unack Alarms In the Alarm Client Control, you can configure the Flash Unack
Alarms option on the Colors page.
Show Message In the Alarm Client Control, this option is called Show Custom ‘No
Records’ Message. You can configure it on the Run-Time Behavior
page.
Font You can configure this option from the Industrial Graphic Editor page.
Select the Alarm Client Control on the canvas and select an
appropriate font type, size, and style on the menu bars.
Column Details In Alarm Client Control, you can configure the column details directly
on the Column Details page.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 159
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
All the options of the Color tab in the InTouch Alarm Viewer control can be set on the Colors page of the Alarm
Client Control.
The following table shows you some minor differences in wording:
InTouch Alarm View control Alarm Client Control
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 160
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
Time Format In the Alarm Client Control, you can configure the Time Format
option on the Time Settings page.
Displayed Time This option has no meaning in the Alarm Client Control. All alarm
records are shown with the following time stamps in the Alarm
Control grid:
• Time (OAT): Original Alarm Time
• Time (LCT): Last Changed Time
• Time (LCT, OAT): Last Changed Time, but Original Alarm Time if
the alarm record is unacknowledged
Displayed Time Zone In the Alarm Client Control, this option is called Time Zone. You can
configure it on the Time Settings page.
You need to explicitly configure the time zone for the correct time
stamp.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 161
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
From Priority, To In the Alarm Client Control, you can only set the priority limits as
Priority part of a query filter on the Query Filters page. For more
information, see Filter Alarms.
Alarm State In the Alarm Client Control, you can only set the alarm state
limitation as part of a query filter on the Query Filters page. for
more information, see Filter Alarms.
Query Type In the Alarm Client Control, you can set the Client Mode option on
the Alarm Mode page as follow:
• For query type "Summery", set the client mode to Current
Alarms
• For query type "Historical", set the client mode to Recent
Alarms and Events
Alarm Query In the Alarm Client Control, you can configure the Alarm Query
option on the Alarm Mode page.
Query Favorites File, In the Alarm Client Control, all query favorites and filter favorites
Edit Query Favorites are managed on one page and are interchangeable between
different client modes. To access the Query Filter Favorites, open
the Query Filters page.
Sort Column In the Alarm Client Control, you can configure the sorting of alarm
records on the Column Details page.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 162
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
Auto Scroll to New In the Alarm Client Control, you can configure the Auto Scroll to
Alarms New Alarms on the Run-Time Behavior page.
Secondary Sort In the Alarm Client Control, you can configure the sorting of alarm
Column, Sort records on the Column Details page.
Direction
For more information on the exact mapping between the InTouch Alarm Viewer control properties and Alarm
Client Control properties, see Mapping Properties and Methods.
The advanced property filtering feature does not exist in the Alarm Client Control. However, when you browse
for properties of the Alarm Client Control from other elements with the Galaxy Browser, you can filter the
properties. Also, the properties of the Alarm Client Control are logically grouped in the Properties Editor.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 163
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
ControlName You can rename the Alarm Client Control the same way as any other
elements on the canvas. For more information, see the Creating and
Managing Industrial Graphics User’s Guide.
Left, Top, Width, and You can directly edit the positioning options in the same way as any other
Height element on the canvas. Edit the following properties in the Properties
Editor: X, Y, Width, and Height.
Visible You can directly edit the visibility option in the same way as any other
element on the canvas. In the Properties Editor, edit the Visible property.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 164
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
Enable Refresh Menu In the Alarm Client Control, you can configure the availability of the
Requery shortcut menu option on the Run-Time Behavior page.
Enable Sort Menu In the Alarm Client Control, you can configure the availability of the Sort
shortcut menu option on the Run-Time Behavior page.
Enabled Reset Menu In the Alarm Client Control, you can configure the availability of the
Reset shortcut menu option on the Run-Time Behavior page.
Enabled Filter Menu In the Alarm Client Control, you can configure the availability of the
Query Filters shortcut menu option on the Run-Time Behavior page.
Display Mode In the Alarm Client Control, set the Client Mode on the Alarm Mode
page to the same setting as the Display Mode setting in the InTouch
Alarm DB View control.
Column Details In the Alarm Client Control, you can configure the column details
directly on the Column Details page.
Show Grid In the Alarm Client Control, you can configure the Show Grid option on
the Run-Time Behavior page.
Show Heading In the Alarm Client Control, you can configure the Show Heading option
on the Run-Time Behavior page.
Row Selection In the Alarm Client Control, this option is called Row Selection. You can
configure it on the Run-Time Behavior page.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 165
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
Resize Column In the Alarm Client Control, this option is called Allow Column Resizing.
You can configure it on the Run-Time Behavior page.
Show Status Bar In the Alarm Client Control, you can configure the Show Status Bar
option on the Run-Time Behavior page.
Retrieve Buttons In the Alarm Client Control, the retrieve buttons are not available. The
underlying grid technology handles the alarm retrieval from the alarm
database.
Silent Mode In the Alarm Client Control, this option is called Hide Errors and
Warnings. You can configure it on the Run-Time Behavior page.
Font You can configure this option from the Industrial Graphic Editor page.
Select the Alarm Client Control on the canvas and select an appropriate
font type, size, and style on the menu bars.
Show Message In the Alarm Client Control, this option is called Show Custom ‘No
Records’ Message. You can configure it on the Run-Time Behavior page.
All the options of the Color tab in the InTouch Alarm DB View control can be set on the Colors page of the Alarm
Client Control.
The following table shows you some minor differences in wording:
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 166
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
Forecolor Text
Backcolor Background
Alm n/a
Return RTN
You can set the alarm priority range breakpoints directly in the table in the From Pri column.
In the Alarm Client Control, you can configure the following options on the Alarm Mode page:
• Server Name • Database Name
• User • Password
• Test Connection
In the Alarm Client Control, the Auto Connect option is called Query on Startup. You can configure it on the Run-
Time Behavior page.
The configuration for the Alarm Database only appears if the Client Mode is set to Historical Alarms, Historical
Events, or Historical Alarms and Events.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 167
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
Use Specific Time, Start Time, In the Alarm Client Control, you can set these options directly in
End Time the Time Range Picker control on the Alarm Mode page.
When you select a time from either the start time or end time
part of the Time Range Picker control, the Alarm Control is
automatically set to use a specific time.
To keep the specific start and end time, you must also clear
Update to Current Time. When you refresh the Alarm Control grid
at run time, the time range stays fixed to the given start and end
time.
Duration In the Alarm Client Control, you can set this option directly in the
Time Range Picker control on the Alarm Mode page.
When you select a duration from the center part of the Time
Range Picker control, the Alarm Control is automatically set to use
a time offset.
To keep the duration, you must also select the Update to Current
Time check box.
When you refresh the Alarm Control grid at run time, the end
time is set to the current time and the Alarm Control shows the
alarms within the set duration.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 168
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
UnAck Duration, Alarm In the Alarm Client Control, you cannot configure the Unack
Duration Duration and Alarm Duration settings. The Alarm Control grid
shows both UnAck Duration and Alarm Duration in separate
columns.
Query Time Zone In the Alarm Client Control, you can configure the Time Zone
setting on the Time Settings page.
Maximum Records In the Alarm Client Control, you can configure the Maximum
Records setting on the Alarm Mode page.
Time Format In the Alarm Client Control, you can configure the Time Format setting
on the Time Settings page.
Displayed Time Zone In the Alarm Client Control, you can configure the Time Zone setting on
the Time Settings page.
Primary Sort In the Alarm Client Control, you can configure the sorting options on the
Column, Secondary Column Details page.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 169
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
In the Alarm Client Control, all query favorites and filter favorites are managed on one page and are
interchangeable between different client modes. To access the Query Filter Favorites, open the Query Filters
page.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 170
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
For more information on the exact mapping between the InTouch Alarm DB View control properties and Alarm
Client Control properties, see Mapping Properties and Methods.
The advanced property filtering feature does not exist in the Alarm Client Control. However, when you browse
for properties of the Alarm Client Control from other elements with the Galaxy Browser, you can filter the
properties. Also, the properties of the Alarm Client Control are logically grouped in the Properties Editor.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 171
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 172
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 173
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 174
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
SortColumn You can set three sort columns in the Alarm Client
Control. To set the first column, see SortColumn.First
Property.
SortMenu ContextMenu.Sort Property
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 175
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 176
AVEVA™ Alarm Client Control
Chapter 5 – Transferring Alarm Configuration from InTouch
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 177