Attribute Table — Query Methods
Back to Attribute Table.
GetColumnType
def GetColumnType(columnNumber: int) -> intGet type of given column.
Parameters:
| Name | Type | Description |
|---|---|---|
columnNumber | int | Number of column to get the type of (numbers start with 0). |
Returns: int — Column type.
GetColumnName
def GetColumnName(columnNumber: int) -> strGet name of given column.
Parameters:
| Name | Type | Description |
|---|---|---|
columnNumber | int | Number of column to get the name of (numbers start with 0). |
Returns: str — Column name.
GetColumnSize
def GetColumnSize() -> intGet number of columns.
Returns: int — Columns number.
GetRowSize
def GetRowSize() -> intGet number of rows.
Returns: int — Rows number.
GetCell
def GetCell(columnNumber: int, rowNumber: int) -> objectGet cells of a row.
Parameters:
| Name | Type | Description |
|---|---|---|
columnNumber | int | number of the column. |
rowNumber | int | Number of the row. |
Returns: Any — Cell object.
GetCellType
def GetCellType(columnNumber: int, rowNumber: int) -> intGet the cell types of a row.
Parameters:
| Name | Type | Description |
|---|---|---|
columnNumber | int | Number of the column. |
rowNumber | int | Number of the row. |
Returns: int — Type of the cell, int corresponding to ColumnType.
GetImportFilePath
def GetImportFilePath() -> strGet full path of the import file.
Returns: str — Full path of the import file.
GetRowNumberById
def GetRowNumberById(id: str) -> intGet row number of the row with specified ID (REQUIRES: First column has to be an ID).
Parameters:
| Name | Type | Description |
|---|---|---|
id | str | Row ID. |
Returns: int — Row number, -1 if row not found.
GetRowValuesById
def GetRowValuesById(id: str) -> listGet row values of the row with specified ID (REQUIRES: First column has to be an ID).
Parameters:
| Name | Type | Description |
|---|---|---|
id | str | Row ID. |
Returns: list — Value objects of the desired row.
GetRowValues
def GetRowValues(row: int) -> listGet row values of the row with specified index.
Parameters:
| Name | Type | Description |
|---|---|---|
row | int | Row index. |
Returns: list — Value objects of the desired row.
GetTableIconName
def GetTableIconName() -> strGet the icon name for this table. Attention: This method returns the table icon. Use GetIconName if you need the attribute icon.
Returns: str — Icon name for this table.
GetColumnValueType
def GetColumnValueType(columnNumber: int) -> intGet attribute type of the column.
Parameters:
| Name | Type | Description |
|---|---|---|
columnNumber | int | Column to get attribute type of. |
Returns: int — Attribute type of the column.
GetCellValueType
def GetCellValueType(columnNumber: int, rowNumber: int) -> intGet attribute type of the cell.
Parameters:
| Name | Type | Description |
|---|---|---|
columnNumber | int | Column number of the cell. |
rowNumber | int | Row number of the cell. |
Returns: int — Attribute type of the cell.