The Alarm Grid supports the following scripting methods.
See Accessing Screen Objects for more information about how to view control objects in script in the Canvas application.
| Method | Description | |||
|---|---|---|---|---|
|
AddRow |
The AddRow method adds a row to the grid. It can include a facility tag. Example
|
|||
|
AddRows |
The AddRows method adds rows to the grid. It can take an enumerated list of facility tags. Example
|
|||
|
BuildFromXML |
|
|||
|
Equals |
The Equals method determines whether the specified object is equal to the current object. |
|||
|
Export |
The Export method exports data from a grid column. Supported formats include CSV, HTML, and Text. Export from historical columns is not supported. Example The following example uses a button click event and edit box to provide a path to export to.
|
|||
|
Focus |
The Focus method sets the focus to the control to allow further operations. |
|||
|
GetCell |
The GetCell method retrieves cell data from the grid. It returns a DataCell object. Example A DataCell object is in the following namespace:
A DataCell has one public method:
A DataCell has four public properties:
|
|||
|
GetCellValue |
The GetCellValue method retrieves cell values from the grid. Parameters include row and column. Returns a string value. Example
|
|||
|
GetColumnDefinition |
||||
|
GetHashCode |
The GetHashCode method returns a hash code for the current object. |
|||
|
GetType |
The GetType method returns the runtime type of the current instance. |
|||
|
ReceiveNewFacilities |
|
|||
|
ReceiveNewSiteService |
|
|||
|
Refresh |
The Refresh method refreshes the data in the control from the Current Value Service (CVS). |
|||
|
ResolveRelativeFacility |
The ResolveRelativeFacility method returns the resolved relative facility. |
|||
|
SelectAll |
The Select All method allows multi-row selection via script. If the SelectionMode property is Multiple or Extended, SelectAll will select all rows in a grid and the SelectedRows property will return the matching DataRow objects. SelectAll will not obviously change the selection if SelectionMode is Single. |
|||
|
SerializeObject |
The SerializeObject method stores the object in memory so that it can be recreated when needed. |
|||
|
SetCellValue |
The SetCellValue method can be used to add custom data to the grid. Parameters include row, column, and string value. Returns a Boolean value to indicate success or failure. Example
|
|||
|
SetRowFacility |
|
|||
|
ShowFacilityFilterDialog |
|
|||
|
ToString |
The ToString method returns a string that represents the current object. |
|||
|
UpdateFacilityTagListFilter |
The UpdateFacilityTagListFilter method changes the facility filter of the grid. The method ensures that the FacilitySource property is <Self>, updates the FacilityTagListFilter property, and then calls on the Refresh method. |