Skip to content

DynamicsNAVTable

Behavior patterm for Dynamics NAV grid/table.

Extends UIAObject

Extends SeSSimulatedObject

Behavior Pattern: DynamicsNAVTableBehavior

Property Summary

Property Description Getter Setter
Cell Text of the specified cell. GetCell
CellObject UIAObject for the specified cell. GetCellObject
CellRowIndex Index of a row with the specified cell. GetCellRowIndex
ColumnCount Number of columns in the grid. GetColumnCount
ColumnIndex Index of a column with given name. GetColumnIndex
ColumnName Caption of a column. GetColumnName
ColumnValues Values of cells in a column GetColumnValues
RowCount Number of rows in the grid. GetRowCount

Action Summary

Action Description
DoClickCell Clicks the specified cell.
DoClickColumn Clicks on column header
DoScrollTo Scrolls to the specified cell

Property Detail

Cell

Text of the specified cell.

Getter Parameters:

Name Type Description
row number | string Zero-based index of a row or cell text.
col string | number Name of a column or zero-based column index.

Type: string

Accessors: GetCell

value = SeS('SomeDynamicsNAVTable').GetCell(/**number|string*/ row, /**string|number*/ col)

CellObject

UIAObject for the specified cell.

Getter Parameters:

Name Type Description
row number | string Zero-based index of a row or cell text.
col string | number Name of a column or zero-based column index.

Type: UIAObject

Accessors: GetCellObject

value = SeS('SomeDynamicsNAVTable').GetCellObject(/**number|string*/ row, /**string|number*/ col)

CellRowIndex

Index of a row with the specified cell.

Getter Parameters:

Name Type Description
row string Text in the cell to search for.
col string | number Name of a column or zero-based column index.

Type: number

Accessors: GetCellRowIndex

value = SeS('SomeDynamicsNAVTable').GetCellRowIndex(/**string*/ row, /**string|number*/ col)

ColumnCount

Number of columns in the grid.

Type: number

Accessors: GetColumnCount

value = SeS('SomeDynamicsNAVTable').GetColumnCount()

ColumnIndex

Index of a column with given name.

Getter Parameters:

Name Type Description
columnName string Column name.

Type: number

Accessors: GetColumnIndex

value = SeS('SomeDynamicsNAVTable').GetColumnIndex(/**string*/ columnName)

ColumnName

Caption of a column.

Getter Parameters:

Name Type Description
columnIndex number Zero-based index of the column.

Type: string

Accessors: GetColumnName

value = SeS('SomeDynamicsNAVTable').GetColumnName(/**number*/ columnIndex)

ColumnValues

Values of cells in a column

Getter Parameters:

Name Type Description
columnIndex number Zero-based index of the column.
maxCount number Maximum number of values to return. Zero means everything.

Type: Array

Accessors: GetColumnValues

value = SeS('SomeDynamicsNAVTable').GetColumnValues(/**number*/ columnIndex, /**number*/ maxCount)

RowCount

Number of rows in the grid.

Type: number

Accessors: GetRowCount

value = SeS('SomeDynamicsNAVTable').GetRowCount()

Action Detail

DoClickCell

Clicks the specified cell.

SeS('SomeDynamicsNAVTable').DoClickCell(row, col, clickType, xOffset, yOffset)

Parameters:

Name Type Description
row number | string Zero-based index if the row or text of a cell in the specified column.
col string | number Zero-based index of the column or column name.
clickType string Type of click, can be one of "L" - left click, "LD" - double left click, "R" - right click, "RD" - double right click, "M" - middle click, "MD" - double middle click, "N" - don't click Possible values: "L", "LD", "R", "RD", "M", "MD", "N"
Optional, Default: "L".
xOffset number X offset to click within node. Default is a center.
Optional.
yOffset number Y offset to click within node. Default is a center.
Optional.

Returns:

boolean: 'true' if successful, 'false' otherwise

DoClickColumn

Clicks on column header

SeS('SomeDynamicsNAVTable').DoClickColumn(col, clickType, xOffset, yOffset)

Parameters:

Name Type Description
col number | string Zero-based index of the column or column name.
clickType string Type of click, can be one of "L" - left click, "LD" - double left click, "R" - right click, "RD" - double right click, "M" - middle click, "MD" - double middle click, "N" - don't click Possible values: "L", "LD", "R", "RD", "M", "MD", "N"
Optional, Default: "L".
xOffset number X offset to click within node. Default is a center.
Optional.
yOffset number Y offset to click within node. Default is a center.
Optional.

DoScrollTo

Scrolls to the specified cell

SeS('SomeDynamicsNAVTable').DoScrollTo(row, col)

Parameters:

Name Type Description
row number | string Zero-based index if the row or text of a cell in the specified column.
col string | number Zero-based index of the column or column name.