Api Net E3d
Api Net E3d
NetDataSource(String TableName, Data Source constructor for database Attributes and database
Array Attributes, Array AttributeTitles, elements. The Grid will populate itself with database
Array Elements) values. The title of each column is represented by
AttributeTitles.
NetDataSource(String TableName, Data Source constructor for database Attributes and database
Array Attributes, Array Elements) elements. The Grid will populate itself with database
values.
NetDataSource(String TableName, Data Source constructor for database Attributes and database
Array Attributes, Array Elements, elements. The Grid will populate itself with database
String Tooltips) values.
NetDataSource(String TableName, Data Source constructor for column headings, and a set of
Array columns, Array of Array of rows) row data. In this case the grid does NOT populate itself with
database attribute values.
NetDataSource(String TableName, Data Source constructor for column headings, and a set of
Array columns, Array of Array of rows, row data. In this case the grid does NOT populate itself with
String Tooltips) database attribute values.
NetDataSource(String TableName, Data Source constructor for import of an Excel or CSV File
string PathName)
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 2 of 12
(Boolean)
createValueList(String Name, Array for Create a value list for the grid.
List)
DisplayNulrefAs(String) Nominate (or query) a text string to be used in grid cells that
hold "Nulref" reference attribute data.
DisplayUnsetAs(String) Nominate (or query) a text string to be used in grid cells that
hold "unset" attribute data.
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 3 of 12
FeedbackFailColor(String) Nominate (or query) the colour used to highlight cells where
editing fails.
getDataSource() NetDataSource Returns the data source that has been set in the grid.
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 4 of 12
loadLayoutFromXml(String) Load a stored grid layout into the current grid instance.
printPreview() Opens a Print Preview of the grid instance (which also allows
printing).
resetCellFeedback() Reset the cell editing feedback highlight colour and tooltip
text.
saveGridToExcel(string excelFile, Save the grid data to a designated worksheet of an Excel file.
string worksheet) Note that this will retain all grid groupings and layout of
SaveLayoutToXml(String) Save the grid layout (not data) to a file on the file system.
setAlternateRowColor(Red Num, Set alternate rows of the grid to a different colour. The default
Green Num, Blue Num) is: (251, 251, 255).
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 5 of 12
setLabelVisibility(Boolean) Show/hide the label which indicates the number of rows in the
grid.
SetGroupOrigin(string grKey, Point Set of the {x,y} origin of the given group.
value)
SetGroupSpan(string grKey, Point Set of the {x,y} span of the given group.
value)
GetFilteredInRows() Array Return the rows which are contained in the current filter.
GetFilteredOutRows() Array Return the rows which are not contained in the current filter.
getRow(string row) Array Get the cells in the row with the specified row tag.
getRowNumFromTag(string rowTag) Get the row number from the row tag.
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 6 of 12
setRowColor(Real, string Set the colour of the row to the named value.
strColorcolour)
SetRowColor(string rowTag, string Set the colour of the row to the named value.
colour)
SetRowColor(string row, real red, real Set the colour of the row to the RGB value.
green, real blue)
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 7 of 12
AlignColumnHeaderVertcally(string Align the given column header vertically: Default, Top, Middle
ColumnName, string Align) or Bottom.
ColumnsInGroupByBox() Boolean Returns true if there is at least one column in the GroupBy
box.
getColumn(string column) Array Get the cells in the column with a specified tag.
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 8 of 12
getColumnPosition(string column) Real Get the position of the column with the specified tag.
GetColumnTitle(string column) String Get the title of the column with the specified tag.
getTitles() Array of strings Get the titles for the columns in the grid.
GetUserColumnSpecifications Array Get the column specifications in the column setup window.
getUserTitles() Array Get the column titles in the column setup window.
setColumnColor(string column, string Set the column colour to a string, for example, red.
colour)
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 9 of 12
setColumnsWithFilters(Array) Set the columns in the grid with the specified filters.
SetColumnWithFilters(string colName, Set the column in the grid with specified filters and column
Hashtable paramValues) names. This function requires to set columns and values in
correct order, otherwise it won't set correctly
show !!PMLGridExample
!x[0] = '/E1301'
!x[1] = '/C1101'
!y[0] = 'EQUI'
!z[0] = !x
!z[1] = !y
!columnsName[0] = 'Name'
!columnsName[1] = 'Type'
q var !!
PMLGridExample.grid.SETCOLUMNSWITHFILTERS(!
columnsName,!z)
SetColumnWithFilters(string colName, Set the column in the grid with the specified filters.
Hashtable paramValues)
show !!PMLGridExample
!values = object array()
!values[0] = '/E1301'
!values[1] = '/C1101'
!values[2] = '/1302A'
!columnName = 'Name'
q var !!
PMLGridExample.grid.SETCOLUMNWITHFILTERS(!
columnName,!values)
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 10 of 12
assignValueListToCell(String, Real, Assign the given value list to the cell (row, column).
Real)
getCell(Real, Real) Get the content of the cell in the specified row and column.
getCell(string rowTag, string STRING Get the content of the cell in the specified row and column.
columnTag)
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 11 of 12
string colTag)
isEditableCell(string strRowTag, string Boolean Get whether or not the cell is editable.
strColTag)
removeValueListFromCell (Real, Real) Remove the value list from the cell.
setCellColor(string rowTag, string Set the colour of a cell, for example: red.
columnTag, string colour)
setCellColor(string rowTag, string Set the colour of the cell to the RGB value.
columnTag, real red, real green, real
blue)
setCellColor(Real, Real, Real, Real, Set the colour of the cell to the RGB value.
Real, Real)
setCellTextAlignment(string rowTag, Set the alignment of text in the cell to CENTRE, CENTER,
string columnTag, string alignment), LEFT or RIGHT.
where alignment=CENTRE, CENTER,
LEFT, RIGHT
Other methods
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022
Grid Control API Page 12 of 12
setErrorIcon(Image, Image) Set the image of the icon to appear in a Dabacon grid when
an error is generated.
MenuTool PopupMenuHeader Set the popup menu for the header of the grid.
RefreshGroupSort() Refresh group sort (can be used when a new item is added).
DisplayStyle CellValueListDisplayStyle The cell Value List display style (Always, OnMouseEnter,
OnCellActivate, OnRowActivate).
1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
https://help.aveva.com/AVEVA_E3D_Design/2.1.0.34/NCUG/NCUG6.08.09.html 05-10-2022