CygNet Grid Properties
The CygNet Grid 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.
CygNet Grid Control 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 allowed. 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. |
|||||||||||
|
|
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.
Styles are created in two ways:
Tip: |
|||||||||||
| Location |
||||||||||||
|
Height |
The Height property specifies the height of the control (or screen). Tip: |
|||||||||||
|
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 |
The Layer property specifies the name of the layer to which this object is assigned. Layers can be used to show, hide, and edit multiple controls on one layer without affecting controls on another layer.
Tip:
Note: |
|||||||||||
|
IsLocked |
The Lock property indicates whether the control is locked to the current position. A locked control cannot be moved via click and drag, or nudged with the arrow keys, or resized. Tip: |
|||||||||||
|
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 |
The Visible check box indicates whether the control is visible in run mode. Tip: |
|||||||||||
|
Width |
The Width property specifies the width of the control (or screen). Tip: |
|||||||||||
|
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: |
|||||||||||
|
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: |
|||||||||||
|
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: |
|||||||||||
| Script |
||||||||||||
|
|
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. Tip: |
|||||||||||
| Grid |
||||||||||||
|
ColumnDefinitions ColumnDefinitions.Count ColumnProperties ColumnTypes |
The Grid Column Configuration dialog box contains the properties required to configure each column in your grid. There are four types of columns that can be configured in a CygNet grid: a Facility column, a Generic column, a History column, and a Point column. The number of defined columns is listed on the property label once all are configured. Click Column OrderOnce defined, columns can be easily reordered by selecting, then dragging and dropping the item to a new location. Column Types
|
|||||||||||
|
Column configuration > Common property group (All column types) |
||||||||||||
|
Name |
The Name specifies the name that appears in the column header. |
|||||||||||
|
Type |
The Type property is a read-only text box that shows the column Type: Generic, Facility, Point, or History. |
|||||||||||
|
Visible |
The Visible check box indicates whether to display the column in run mode. |
|||||||||||
|
Width |
The Width property specifies the width of the column in pixels. Set the value to 0 to auto size the width. |
|||||||||||
|
Text alignment |
The Text alignment property specifies the text alignment for the column. The options are Left, Right, Center, and Justify. The default value is Left. |
|||||||||||
|
Read only (Generic column type only) |
IsReadOnly |
The Read only property indicates whether the cells in a Generic column are editable. (Generic column only) |
||||||||||
|
Sort numerically (all columns except History |
|
The Sort numerically property specifies whether this column can be sorted numerically. In run mode, clicking a column header moves between the three states: sort ascending, sort descending, and unsorted. A small arrow indicates the sort order. Note: |
||||||||||
|
Column configuration > Color property group (Facility, Generic, and Point columns) Note:
|
||||||||||||
|
The Background color property specifies the color used for the background of the grid cell. For a Generic and Facility column The color can be sourced from one of two options provided in the Source drop-down menu:
The default value is Auto. Options include:
For a Point column The color can be sourced from one of three options provided in the Source drop-down menu:
The default value is Auto. Options include:
Note: |
||||||||||||
|
The Text color property specifies the color used for the text of the grid cell. For a Generic and Facility column The color can be sourced from one of two options provided in the Source drop-down menu:
The default value is Auto. Options include:
For a Point column The color can be sourced from one of three options provided in the Source drop-down menu:
The default value is Auto. Options include:
Note: |
||||||||||||
|
The Border color property specifies the color used for the border of the grid cell. For a Generic and Facility column The color can be sourced from one of two options provided in the Source drop-down menu:
The default value is Auto. Options include:
For a Point column The color can be sourced from one of three options provided in the Source drop-down menu:
The default value is Auto. Options include:
Note: |
||||||||||||
|
(Point column only) |
The Display alarm acknowledgment property enables the cell or text tool's background, text, and border to blink when the associated point is in alarm. Check each box to configure the:
If none of these options are selected, no visual indication of a point in alarm will be presented. However, if the point is in alarm, an Acknowledge alarm option will be available from the context menu in run mode. Note:
|
|||||||||||
|
Column configuration > Facility property group (Facility column only) |
||||||||||||
|
Facility attribute |
The Facility attribute property specifies the facility attribute that will displayed in the column. Click
Click |
|||||||||||
|
Resolve to a relative facility |
|
The Resolve to a relative facility check box redirects the source of the facility to a relative facility, overriding the configured source facility. Once selected a list of configured Relative links is displayed. See Using Relative Facilities in Canvas for more information about configuring and scripting relative facility links. |
||||||||||
|
Relative link |
|
The Relative link property specifies a list of all available relative facility paths. Click |
||||||||||
|
Order in type |
|
The Order in type property specifies the attribute value used to represent the order in type (facility ordinal) if the relative facility definition is configured for one. It is possible to have multiple relative facility definition sets with the same definition name. In this case, if the specified Relative link is configured for ordinalization, then you need to configure the attribute value in the box. |
||||||||||
|
Column configuration > History property group (History column only) |
||||||||||||
|
UDC |
The UDC property specifies the UDC for which the control is to display data. Click |
|||||||||||
|
Resolve to a relative facility |
The Resolve to a relative facility check box redirects the source of the facility to a relative facility, overriding the configured source facility. Once selected a list of configured Relative links is displayed. See Using Relative Facilities in Canvas for more information about configuring and scripting relative facility links. |
|||||||||||
|
Relative link |
The Relative link property specifies a list of all available relative facility paths. Click |
|||||||||||
|
Order in type |
|
The Order in type property specifies the attribute value used to represent the order in type (facility ordinal) if the relative facility definition is configured for one. It is possible to have multiple relative facility definition sets with the same definition name. In this case, if the specified Relative link is configured for ordinalization, then you need to configure the attribute value in the box. |
||||||||||
|
Color |
|
The Sparkline color (or Color) property specifies the color of the sparkline. Click Note:
|
||||||||||
|
Start date |
|
The Begin date or Start or Start date property specifies the start date and time for a control (or screen or chart or column) for an absolute date and time view window. The format is MM/DD/YYYY hh:mm:ss AM/PM. The default value is the system date and time at which the control was first added to the screen. Click |
||||||||||
|
End date |
|
The End date or End property specifies the end date and time for a control (or screen or chart or column) for an absolute date and time view window. The format is MM/DD/YYYY hh:mm:ss AM/PM. The default value is the system date and time at which the control was first added to the screen. Click |
||||||||||
|
Use relative dates |
|
The Use relative dates check box indicates whether to use relative dates and time in the history column of the CygNet Grid. If unchecked all dates and time will be absolute. |
||||||||||
|
Relative start date |
|
The Begin relative date or Relative start date or Start property specifies a wildcard string defining the amount of time by which to adjust the start date and time. The space-separated elements in this string must be of the form: "x-#", "x+#", or "x=#" where # is an integer and x is one of the following unit specifiers: y — Year, m — Month, d — Day, H — Hour, M — Minute, S — Second, and # is an integer. T wildcard is also supported and must be in the form: T, T+#, T-#, where T represent today at midnight, T-1 is yesterday at midnight, and T+1 is tomorrow at midnight, etc. Any integer can be used. For example, H-8 represents data from the 8 hours before the current hour, d+3 represents data 3 days after the current day, and d+2 H+1 M+30 represents data 2 days, 1 hour and 30 minutes after the current date and time. d-4 H=6 sets the relative start date and time to four days ago (d-4) at 6:00 a.m. (H=6). See Date and Time Wildcards for more information about adjusting relative time. |
||||||||||
|
Relative end date |
|
The End relative date or Relative end date or End property specifies a wildcard string defining the amount of time by which to adjust end date and time. The space-separated elements in this string must be of the form: "x-#", "x+#", or "x=#" where # is an integer and x is one of the following unit specifiers: y — Year, m — Month, d — Day, H — Hour, M — Minute, S — Second, and # is an integer. T wildcard is also supported and must be in the form: T, T+#, T-#, where T represent today at midnight, T-1 is yesterday at midnight, and T+1 is tomorrow at midnight, etc. Any integer can be used. For example, H-8 represents data from the 8 hours before the current hour, d+3 represents data 3 days after the current day, and d+2 H+1 M+30 represents data 2 days, 1 hour and 30 minutes after the current date and time. d-4 H=6 sets the relative end date and time to four days ago (d-4) at 6:00 a.m. (H=6). See Date and Time Wildcards for more information about adjusting relative time. |
||||||||||
|
The Auto range x-axis check box indicates whether the sparkline's x-axis is constrained to the range of values for the associated point or fixed to the configured time range (default). Configure the date and time range in the Range properties below. |
||||||||||||
|
The Auto range y-axis check box indicates whether the sparkline's y-axis is constrained to the range of values for the associated points (default) or fixed to the configured minimum and maximum values. Configure the y-axis scale in the Maximum Y value and Minimum Y value below. |
||||||||||||
|
The Minimum Y value property specifies the minimum value to use on the sparkline's y-axis when the Auto range - y-axis property is set to fixed (disabled). |
||||||||||||
|
The Maximum Y value property specifies the maximum value to use on the sparkline's y-axis when the Auto range - y-axis property is set to fixed (disabled). |
||||||||||||
|
Column configuration > Point property group (Point column only) |
||||||||||||
|
UDC |
The UDC property specifies the UDC for which the sparkline is to display data. Click |
|||||||||||
|
Point attribute |
The Point attribute property specifies the CygNet point attribute that will be displayed in the column. Click
Click |
|||||||||||
|
Resolve to a relative facility |
The Resolve to a relative facility check box redirects the source of the facility to a relative facility, overriding the configured source facility. Once selected a list of configured Relative links is displayed. See Using Relative Facilities in Canvas for more information about configuring and scripting relative facility links. |
|||||||||||
|
Relative link |
The Relative link property specifies a list of all available relative facility paths. Click |
|||||||||||
|
Order in type |
|
The Order in type property specifies the attribute value used to represent the order in type (facility ordinal) if the relative facility definition is configured for one. It is possible to have multiple relative facility definition sets with the same definition name. In this case, if the specified Relative link is configured for ordinalization, then you need to configure the attribute value in the box. |
||||||||||
|
Value format |
The Value format property specifies the format for the point's value using any of the valid .NET standard or custom numeric format strings. The value format applies to a point's Value, Primary Value, and Alternate Value properties. The default value format is #,##0.00, which corresponds to 123,456,789.12. Formats use # and 0, with a period (.) as the decimal separator and comma (,) as the thousands separator. Add additional zeros to show more decimal places. |
|||||||||||
|
The Date and time format property specifies the format for a point's timestamp using any of the valid .NET standard or custom numeric format strings. The date and time format applies to a point's Timestamp, Last Verified Change Timestamp, and Last Questionable Change Timestamp properties. Use this property to override the default format, which is configured on the Settings page of the Backstage view. The default format is YYYY/MM/DD HH:MM:SS.fff, which corresponds to 2019/01/01 10:20:30.0001. All timestamps are local client time. Note: |
||||||||||||
|
Column configuration > Summary property group (Point column only) |
||||||||||||
|
Summary type |
The Summary type property specifies the type of values presented in the grid summary row at the bottom of the grid. Click
See Row summary update rate below for information about the update rate at which the grid will recalculate row summaries after a value changes. |
|||||||||||
|
Show label |
The Show label check box indicates whether to display a label providing context for the summary row value. Options include: Sum:, Min:, Max:, MinMax:, Count:, and Mean:. |
|||||||||||
|
Grid properties continued… |
||||||||||||
|
CustomContextMenuItems |
The Custom Context Menu Configuration dialog box is where you configure any custom context menu items that will appear in the right-click context menu for the screen or control. Each custom context menu item will call an event into script so that you can customize screen or control behavior. 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 |
|
The Title property specifies the menu name to be displayed in the runtime context menu. |
||||||||||
|
Context menu items > Is separator |
|
The Is separator check box indicates whether this menu item will be a separator line in the menu at runtime. Once saved the separator has no configuration and no children. Separators do not have event IDs. Any event ID on a menu item when it’s converted to a separator is deleted. You can give it a title of 'Separator" or "----------" if desired. |
||||||||||
|
Context menu items > Script event ID |
|
The Script event ID specifies the event ID that will be called when the menu item is selected from the runtime right-click context menu. The event ID is passed in as a parameter into the Custom Context Menu Action event, along with other relevant information in the context of the click, for example, facility or point tag, as appropriate. |
||||||||||
|
|
GridFacilitySenderMode |
The Facility sender mode property determines which mouse-click actions will send facilities to other controls. Options include:
The default value is None. Sending and receiving facility tagsSome controls on the same screen allow for the sending of facility tag information from one control to another.
|
||||||||||
|
The Row configuration property is where you specify the source of the facility (and maybe the SiteService) for the row of the CygNet grid to use. The source for the facility can be explicitly configured for this row or it can be inherited from the screen or another control. If Row configuration is set to <Self> then you also need to provide a SiteService. This could be manually configured or inherited. Click |
||||||||||||
|
Facility |
FacilitySender FacilitySource FacilityTagListFilter |
The Facility property specifies the source facility for the grid's rows. Options include:
|
||||||||||
|
SiteService |
CygNetGrid.SiteService SiteService.DisplayString SiteService.DomainSiteService SiteService.DomainSiteService.DomainId SiteService.DomainSiteService.Service SiteService.DomainSiteService.Site SiteService.DomainSiteService.SiteService SiteService.DomainSiteService.SiteService.Service SiteService.DomainSiteService.SiteService.Site SiteService.IsBroadcastSourced SiteService.IsSelfSourced SiteService.SiteService SiteService.Source SiteServiceSender |
The SiteService property specifies the source SiteService for the grid's rows. SiteService is only available for configuration if the facility source is <Self>. Options include:
|
||||||||||
|
RowSummaryUpdateRate |
The Row summary update rate property specifies the rate (in milliseconds) at which the grid will recalculate row summaries after a value changes in a point column. Longer rates will improve performance by not recalculating as often. When a value in a cell is updated, the summary row will be recalculated. However recalculation does not happen immediately or for every update; it is throttled by the Row summary update rate. When a recalculation is requested, Canvas will delay for the duration of the update rate. This allows other updates to come in that may affect the recalculated values. Recalculation requests that come in during that delay will be ignored. In this way, no matter how often values change, Canvas will not recalculate the summary row value more often than the set rate. The default value is 1000 milliseconds (1 second). See Summary properties above for information about configuring grid row summaries. |
|||||||||||
|
SelectionMode SelectionUnit SelectedRow SelectedRows |
The grid controls offer three selection modes, which determine how many grid units may be selected in run mode. The grid units are determined by the Selection unit property. Options include:
The default value is Single. In script, use SelectionMode with the SelectAll method and SelectedRows property (read-only) to aid in multi-row selection:
|
|||||||||||
|
SelectionUnit |
The CygNet grid control offers three selection units. The Selection unit property determines the grid units that may be selected in run mode. Options included:
The default value is Full row. |
|||||||||||
| Generic |
||||||||||||
|
String |
The String property specifies a generic string property that can be used when scripting this control. Type a string and reference it in your script as necessary. |
|||||||||||
|
YesNo |
The Yes/No property specifies a generic Boolean yes/no property that can be used when scripting this control. Click the check box to enable the property and reference it in your script as necessary. |
|||||||||||
