BiDataTable

This class represents a data table inside a data set. A data table consists of columns and rows.

This class extends BiObject and therefore all methods and fields available for BiObject are also available for BiDataTable .

Constructor

new BiDataTable ( [ sName ] )

Parameters

Name Type Optional Default Descripton
sName String checked The name of the table.

Properties

Name Type get set Descripton
columns BiDataColumn[] checked The columns in the table
dataReady Boolean checked This is true if the data is ready. This is always true for a BiDataTable but might not be true for a sub class.
dataSet BiDataSet checked This is the data set that the table is part of
name String checked The name of the table.
rows BiDataRow[] checked The rows in the table

Methods

Name Description
addColumn Adds a column to the table.
addRow Adds a row to the table.
getColumnByName Returns the column with the given name.
removeColumn Removes a column from the table.
removeRow Removes a row from the table.

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

Method Details

addColumn

Adds a column to the table.

Syntax

object.addColumn
 (
 oColumn
 [
 ,oBefore
 ]
 
 )
 

Parameters

Name Type Optional Default Descripton
oColumn BiDataColumn The column to add
oBefore BiDataColumn checked If provided the new column is added before this

Return Type

void

addRow

Adds a row to the table.

Syntax

object.addRow
 (
 oRow
 [
 ,oBefore
 ]
 
 )
 

Parameters

Name Type Optional Default Descripton
oRow BiDataRow The row to add
oBefore BiDataRow checked If provided the new row is added before this

Return Type

void

getColumnByName

Returns the column with the given name.

Syntax

object.getColumnByName
 (
 s
 )
 

Parameters

Name Type Optional Default Descripton
s String The name of the column to get

Return Type

BiDataColumn

removeColumn

Removes a column from the table.

Syntax

object.removeColumn
 (
 oColumn
 )
 

Parameters

Name Type Optional Default Descripton
oColumn BiDataColumn The column to remove

Return Type

BiDataColumn

removeRow

Removes a row from the table.

Syntax

object.removeRow
 (
 oRow
 )
 

Parameters

Name Type Optional Default Descripton
oRow BiDataRow The row to remove

Return Type

BiDataRow