DomOafTable¶
This behavior pattern implements standard behavior for Oracle Application Framework (OAF) Table control.
Extends HTMLObject
Extends SeSSimulatedObject
Behavior Pattern: DomOafTableBehavior
Property Summary¶
| Property | Description | Getter | Setter |
|---|---|---|---|
| Cell | Text of the specified cell. | GetCell | |
| ColumnCount | Number of columns in the grid. | GetColumnCount | |
| ColumnIndex | Index of a column with given name. | GetColumnIndex | |
| ColumnName | Caption of a column. | GetColumnName | |
| RowCount | Number of rows in the grid. | GetRowCount | |
| SelectedRow | Returns the currently selected row index (0-based). | GetSelectedRow |
Action Summary¶
| Action | Description |
|---|---|
| DoClickCell | Clicks the specified cell. |
| DoClickText | Clicks on a specific text inside the grid. |
| DoSelectRow | Selects a row by clicking its radio button. |
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('SomeDomOafTable').GetCell()
ColumnCount¶
Number of columns in the grid.
Type: number
Accessors: GetColumnCount
value = SeS('SomeDomOafTable').GetColumnCount()
ColumnIndex¶
Index of a column with given name.
Getter Parameters:
| Name | Type | Description |
|---|---|---|
| columnName | string | Column name. |
Type: number
Accessors: GetColumnIndex
value = SeS('SomeDomOafTable').GetColumnIndex()
ColumnName¶
Caption of a column.
Getter Parameters:
| Name | Type | Description |
|---|---|---|
| columnIndex | number | Zero-based index of the column. |
Type: string
Accessors: GetColumnName
value = SeS('SomeDomOafTable').GetColumnName()
RowCount¶
Number of rows in the grid.
Type: number
Accessors: GetRowCount
value = SeS('SomeDomOafTable').GetRowCount()
SelectedRow¶
Returns the currently selected row index (0-based). Returns -1 if no row is selected.
Type: number
Accessors: GetSelectedRow
value = SeS('SomeDomOafTable').GetSelectedRow()
Action Detail¶
DoClickCell¶
Clicks the specified cell.
SeS('SomeDomOafTable').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
DoClickText¶
Clicks on a specific text inside the grid.
SeS('SomeDomOafTable').DoClickText(text, index)
Parameters:
| Name | Type | Description |
|---|---|---|
| text | string | Text to search in the grid. |
| index | number | Index in the array if the text found several times. Optional. |
Returns:
'true' if successful, 'false' otherwise
DoSelectRow¶
Selects a row by clicking its radio button.
SeS('SomeDomOafTable').DoSelectRow(row, col)
Parameters:
| Name | Type | Description |
|---|---|---|
| row | number | string | Row identifier: zero-based row index (number) or cell text to find the row (string). |
| col | string | number | Optional. Column name or index to use when searching by text. Default is 0 (first column). Optional. |
Returns:
boolean: true if selection successful, false otherwise.