Skip to Content

Attribute Table — Query Methods

Back to Attribute Table.

GetColumnType

def GetColumnType(columnNumber: int) -> int

Get type of given column.

Parameters:

NameTypeDescription
columnNumberintNumber of column to get the type of (numbers start with 0).

Returns: int — Column type.

GetColumnName

def GetColumnName(columnNumber: int) -> str

Get name of given column.

Parameters:

NameTypeDescription
columnNumberintNumber of column to get the name of (numbers start with 0).

Returns: str — Column name.

GetColumnSize

def GetColumnSize() -> int

Get number of columns.

Returns: int — Columns number.

GetRowSize

def GetRowSize() -> int

Get number of rows.

Returns: int — Rows number.

GetCell

def GetCell(columnNumber: int, rowNumber: int) -> object

Get cells of a row.

Parameters:

NameTypeDescription
columnNumberintnumber of the column.
rowNumberintNumber of the row.

Returns: Any — Cell object.

GetCellType

def GetCellType(columnNumber: int, rowNumber: int) -> int

Get the cell types of a row.

Parameters:

NameTypeDescription
columnNumberintNumber of the column.
rowNumberintNumber of the row.

Returns: int — Type of the cell, int corresponding to ColumnType.

GetImportFilePath

def GetImportFilePath() -> str

Get full path of the import file.

Returns: str — Full path of the import file.

GetRowNumberById

def GetRowNumberById(id: str) -> int

Get row number of the row with specified ID (REQUIRES: First column has to be an ID).

Parameters:

NameTypeDescription
idstrRow ID.

Returns: int — Row number, -1 if row not found.

GetRowValuesById

def GetRowValuesById(id: str) -> list

Get row values of the row with specified ID (REQUIRES: First column has to be an ID).

Parameters:

NameTypeDescription
idstrRow ID.

Returns: list — Value objects of the desired row.

GetRowValues

def GetRowValues(row: int) -> list

Get row values of the row with specified index.

Parameters:

NameTypeDescription
rowintRow index.

Returns: list — Value objects of the desired row.

GetTableIconName

def GetTableIconName() -> str

Get 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) -> int

Get attribute type of the column.

Parameters:

NameTypeDescription
columnNumberintColumn to get attribute type of.

Returns: int — Attribute type of the column.

GetCellValueType

def GetCellValueType(columnNumber: int, rowNumber: int) -> int

Get attribute type of the cell.

Parameters:

NameTypeDescription
columnNumberintColumn number of the cell.
rowNumberintRow number of the cell.

Returns: int — Attribute type of the cell.

Was this page helpful?