DDS Button Properties
The DDS Button supports the following properties, which are available via the Properties pane and the Canvas script editor. Click next to any property name in the Properties pane to see a short description for the selected property.
See Accessing Screen Objects for more information about how to view control objects in script in the Canvas application.
Categorizing, Sorting, and Finding Properties
You can click
(Categorize), click
(Alphabetical within Category) or click
(Search) within the properties using the features located immediately above the properties list. The search box is useful to help locate a property when an object contains many properties. For clarity, when you enter a search term, items matching your entry string remain displayed and non-matching items are temporarily hidden. Clear the search box to display the full properties list again.
You can expand and collapse each property category by clicking
or
next to the group name or simply clicking anywhere in the category heading.
DDS Button Properties
The following tables describe the property names visible in the Properties pane user interface (UI) and the corresponding script property name.
|
|
| UI Property | Script Property | Description | ||||
|---|---|---|---|---|---|---|
| Name Type Style | ||||||
|
ControlName |
The Name property specifies the unique identifier for this control. Valid characters are A-Z, 0-9, and underscore (_). Special characters and spaces are not permitted. Names cannot start with a number; an underscore will be prefixed if the control name starts with a number. The default value is the object name and the numeric instance. The control's Name is also displayed on the Controls view of the Screen pane. |
|||||
|
ControlType |
The read-only Type property displays the type for the control: Button, Chart, CygNet Grid, Edit Box, Object Container, Search Box, Tag Chooser, etc. … The control's Type is also displayed on the Controls view of the Screen pane. |
|||||
|
|
Styles are created in two ways:
Tip: You can also change a control's Style on the Controls view of the Screen pane. |
|||||
Location
|
||||||
|
Height |
The Height property specifies the height of the control (or screen). Tip: You can also change the height of a control using the Settings pane (click on the |
|||||
|
HorizontalResizeMode |
The Horizontal resize mode property specifies whether and how the control dynamically moves or resizes horizontally when the screen is resized in run mode. Options include:
The default value is None. |
|||||
|
Layer |
Tip: You can also edit a control's Layer on the Controls view of the Screen pane. Note: Layer visibility can be controlled at runtime via the AddLayer, HideLayer, SetLayerVisibility, and ShowLayer methods on the Screen object. |
|||||
|
IsLocked |
Tip: You can also toggle the lock setting of a control using the Settings pane (click on the |
|||||
|
VerticalResizeMode |
The Vertical resize mode property specifies whether and how the control dynamically moves or resizes vertically when the screen is resized in run mode. Options include:
The default value is None. |
|||||
|
IsVisible |
Tip: You can also change a control's Visible setting on the Controls view of the Screen pane. |
|||||
|
Width |
The Width property specifies the width of the control (or screen). Tip: You can also change the width of a control using the Settings pane (click on the |
|||||
|
X |
The X property specifies the location of the control along the horizontal axis. Use the up, down, left, and right arrow keys to nudge a control by 1 pixel. Arrow moves a control by 1 pixel. Ctrl+Arrow moves a control by 10 pixels. Ctrl+Shift+Arrow moves a control by 100 pixels. Tip: You can also change the location of the control using the Settings pane; click on the |
|||||
|
Y |
The Y property specifies the location of the control along the vertical axis. Use the up, down, left, and right arrow keys to nudge a control by 1 pixel. Arrow moves a control by 1 pixel. Ctrl+Arrow moves a control by 10 pixels. Ctrl+Shift+Arrow moves a control by 100 pixels. Tip: You can also change the location of the control using the Settings pane; click on the |
|||||
|
ZIndex |
The Z index property is used to determine the order in which controls are layered on top of each other. Controls with higher values will draw on top of those with lower values. The newest control added to a screen will always have the highest value and will be the top layer. Two or more controls can be on the same index (layer). Tip: You can also change the Z index of a control using the Settings pane (click on the |
|||||
Script
|
||||||
|
Tip: You can also change the Include in Script setting on the Controls view of the Screen pane. |
||||||
Value
|
||||||
|
ColorConfiguration |
The Color configuration drop-down contains all options required to specify the color properties of the control. Click |
|||||
|
Background color |
ColorConfiguration.BackgroundSource ColorConfiguration.BackgroundSelfColor |
The Background color property specifies the color used for the background of the control. The color can be sourced from one of two options provided in the Source drop-down menu:
Options include:
For each color property select the Source and Color:
Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. |
||||
|
Text color |
ColorConfiguration.TextColorSource ColorConfiguration.TextSelfColor |
The Text color property specifies the color used for the text on the control or map visual. The color can be sourced from one of two options provided in the Source drop-down menu:
Options include:
For each color property select the Source and Color:
Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. |
||||
|
Border color |
ColorConfiguration.BorderColorSource ColorConfiguration.BorderSelfColor |
The Border color property specifies the color used for the border of the control. The color can be sourced from one of two options provided in the Source drop-down menu:
Options include:
For each color property select the Source and Color:
Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. |
||||
|
CustomContextMenuItems |
The custom context menu options will appear at the bottom of the fixed context menu options, separated by a line. Each custom context menu item has a title and an event script ID; items can be designated as a separator; and custom context menus support nested menu items. Click |
|||||
|
Context menu items > Title |
|
|||||
|
Context menu items > Is separator |
|
|||||
|
Context menu items > Script event ID |
|
|||||
|
ShowContextMenu |
The Show context menu check box indicates whether a right-click context menu will be available or suppressed in run mode. The default context menu will allow alarm acknowledgment, access to point history and alarm history, point configuration, and facility configuration. Note: The CygNet Thin Web Client supports its own context menu in the web view. When activated the context menu appears on the right side of the page. From the CygNet TWC web view context menu you can view point values, acknowledge a point in alarm, view and edit alarm values, and add a selected point to an ad-hoc chart. See Using the Thin Web Client Context Menu.
|
|||||
DDS
|
||||||
|
DataGroupConfiguration |
All CygNet communication to and from a remote device is performed using data groups. A data group is a collection of data group elements (DEIDs) logically grouped together for a specific purpose. Its primary function is to organize data received from and sent to field devices. All remote device and data group configuration information is stored in the CygNet DDS. Additional Resources For more information about data groups, see Data Groups. The Data group configuration property is used to configure the source facility and the CygNet data group to be polled when the DDS Button is clicked. Click Note: The source facility configured for the DDS Button is used to determine the associated remote device, and from the remote device, the device type can be ascertained. Then based on the resolved device type, the associated data group configuration (device type, data group, and ordinal) is used to issue the appropriate request to the remote device and complete the operation at runtime. See Data group for Device type, Data group and Ordinal configuration options. |
|||||
|
Selection mode |
DataGroupConfiguration.SelectionMode |
The Selection mode property is used to determine how the DDS Button will receive CygNet information from other controls or from itself. Two options are available; click the desired radio button:
|
||||
|
Facility tag Data group config > Facility
|
DataGroupConfiguration.FacilityTag DataGroupConfiguration.FacilityTag.FacilityId DataGroupConfiguration.FacilityTag.Service DataGroupConfiguration.FacilityTag.Site DataGroupConfiguration.FacilityTag.SiteService DataGroupConfiguration.FacilityTag.SiteService.Service DataGroupConfiguration.FacilityTag.SiteService.Site DataGroupConfiguration.Facility DataGroupConfiguration.Facility.FacilityID DataGroupConfiguration.Facility.FacilityID.IsBroadcastSourced DataGroupConfiguration.Facility.FacilityID.IsOrderInType DataGroupConfiguration.Facility.FacilityID.IsOrderInTypeAttributeConfigured DataGroupConfiguration.Facility.FacilityID.IsRelative DataGroupConfiguration.Facility.FacilityID.IsSelfSourced DataGroupConfiguration.Facility.FacilityID.OrderInType DataGroupConfiguration.Facility.FacilityID.RelativeFacilityLink DataGroupConfiguration.Facility.FacilityID.ResolveRelativeFacility DataGroupConfiguration.Facility.FacilityID.Source DataGroupConfiguration.Facility.FacilityID.SourceFacilityID DataGroupConfiguration.SourceFacilityTag DataGroupConfiguration.SourceFacilityTag.FacilityId DataGroupConfiguration.SourceFacilityTag.Service DataGroupConfiguration.SourceFacilityTag.Site DataGroupConfiguration.SourceFacilityTag.SiteService DataGroupConfiguration.SourceFacilityTag.SiteService.Service DataGroupConfiguration.SourceFacilityTag.SiteService.Site FacilityID FacilitySender FacilityTag
FacilityTag.FacilityId FacilityTag.Service FacilityTag.Site FacilityTag.SiteService FacilityTag.SiteService.Service FacilityTag.SiteService.Site IsRelativeFacilityResolutionEnabled |
The Facility tag or Facility property is where you specify the source of the facility for the control (or screen) to use. The source for the facility can be explicitly configured for this control or it can be received from another control on the same screen, or from the screen, or from another screen. Click
Note: The source facility configured for the DDS Button is used to determine the associated remote device, and from the remote device, the device type can be ascertained. Then based on the resolved device type, the associated data group configuration (device type, data group, and ordinal) is used to issue the appropriate request to the remote device and complete the operation at runtime. See Data group for Device type, Data group and Ordinal configuration options. |
||||
|
SiteService |
DataGroupConfiguration.SiteService DataGroupConfiguration.SiteService.IsBroadcastSourced DataGroupConfiguration.SiteService.IsSelfSourced DataGroupConfiguration.SiteService.SiteService DataGroupConfiguration.SiteService.SiteService.Service DataGroupConfiguration.SiteService.Source SiteService SiteServiceSender |
The SiteService property is where you specify the source of the SiteService for the control (or screen) to use. The source for the SiteService can be explicitly configured for this control or it can be received from another control on the same screen, or from the screen, or from another screen. Click
|
||||
|
Data group |
DataGroupConfiguration.DeviceDataGroups |
The Data group property is where you specify the data group(s) to be polled for transaction data by the DDS Button. Click |
||||
|
Data group config > Device type |
The Device type property specifies the device type of the remote field device. This corresponds to the deviceType attribute in the device template’s device definition, and is the same value that appears in the Device Type column in the DDS view in CygNet Explorer. |
|||||
|
Data group config > Data group |
The Data group property specifies the data group(s) to poll to get data from or to send data to a remote device. |
|||||
|
Data group config > Ordinal |
The data group Ordinal property specifies the ordinal or instance of the data group type specified on the Data Group Properties page of the remote device editor. Each data group added to a remote device is identified by a number called an ordinal. If a remote device requires multiple instances of a data group, the group is defined only once in the device template file, but multiple instances of the data group, each with a unique ordinal, can be added in the device in the DDS. Note: If the data group Ordinal is unknown, which could be due to a templated screen, you must use the wildcard number (9999). In this case, the system will attempt to find a single data group in question for the Facility ID. If one is not identified, then the system will attempt to find the Remote Device of the Facility ID and try to see if there is a single data group that matches on the Remote Device. If that fails and the system cannot resolve the data group, the transaction will fail. |
|||||
|
GetTransactionOnFacilityChange |
The Get transaction on facility change check box indicates whether to get new transaction data whenever a source facility changes. |
|||||
|
ShowTransactionConfirmation |
The Show transaction confirmation check box indicates whether to display a confirmation message showing when the transaction (Get or Send) has succeeded or failed. |
|||||
|
TransactionRequestType |
A transaction (sometimes referred to as a DDS transaction or Tx), is a record of a single instance of communication between a CygNet host and a field device. The Transaction request type property specifies the type of transaction performed when the DDS button is clicked. The options are:
|
|||||
Button
|
||||||
|
IsEnabled |
|
|||||
Image
|
||||||
|
FilePath IsValidImage |
This property specifies the path to the file, image file, video file, object file, or screen file. Depending on the selection in the source property the type of path is different. Click
|
|||||
|
FileSource |
This property specifies the source of the file, object file, screen file, image file, or video file. Options include:
|
|||||
|
ShowImage |
The Show image property indicates whether to display an image on the button. |
|||||
|
ImageSize |
The Size property indicates the size of the image on the control. |
|||||
|
ImageSizeMode |
The Size mode property specifies the method used to size the image used on the button so it can scale without distortion. The image will be resized if not square. Options include:
The default value is Auto. |
|||||
Display
|
||||||
|
MouseCursor |
|
|||||
|
SuppressDataRetrieval |
The Suppress data retrieval check box indicates whether all CygNet data retrieval is suppressed for the control or map visual. Use this if you want to store point information in the control but don't want to automatically query services for data. Tokens will not be replaced and point state colors will be ignored. You can configure the control with a valid point configuration but the control will not retrieve any CygNet data. This allows you to display static text for a control, while still allowing CygNet data context available from script. If a control has a point configured, but Suppress data retrieval is enabled, Canvas won’t do much point processing. The one exception is point validity. If the control is configured to Hide invalid tag, then Canvas will check if the current tag is valid, even if Suppress data retrieval is enabled. This will allow you to configure some static text that will dynamically hide in the case of a templated screen for a facility that doesn’t have that particular point. |
|||||
|
Text |
The Text property specifies the text that will appear on the face of the control. The item can display a static text string, such as a label, legend, tooltip, or a dynamic text string based on point or facility attributes. Dynamic text is built using tokens, which can represent real-time CVS point properties, point configuration properties, and facility properties. In run mode, the tokens are replaced with the attribute's value. Click |
|||||
Tooltip
|
||||||
|
TooltipText |
Note: For tooltips on DDS-based controls, only Facility tokens can be configured if you have a facility tag associated with the control. Point tokens are not supported as there is no point associated with the control. |
|||||
|
TooltipEnabled TooltipDuration TooltipBetweenShowDelay TooltipInitialShowDelay |
|
|||||
|
TooltipMode |
The default value is Text. |
|||||
|
TooltipObjectPath TooltipObjectSource |
|
|||||
Font
|
||||||
|
FontSize |
The Font size property specifies the font size of the text on the control or map visual. |
|||||
|
TextStyle |
The Text style property specifies the style to use for the text that appears on the control or map visual. Options include: Normal, Italic, or Oblique. The default value is Normal. |
|||||
|
TextWeight |
The Text weight property specifies the weight to use for the text that appears on the control or map visual. Options are: Normal or Bold. The default value is Normal. |
|||||
Generic
|
||||||
|
String |
|
|||||
|
YesNo |
|
|||||
The Style property defines the style sheet applied to an object on a screen. A style sheet consists of a predetermined list of properties and property values configured for a particular control type. 
The Include in script check box indicates that the control will appear in the objects collection of the screen (if scripting is enabled). To optimize performance, best practice dictates that you only include the controls you need to manipulate via script. Other controls should be excluded. When you add an event to a control, it will be automatically added to script and the Include in script property (and the In Script check box on the Controls view) will be set to True.
