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 | ![]() | The name of the table. |
Properties
| Name | Type | get | set | Descripton |
columns | | ![]() | The columns in the table | |
dataReady | Boolean | ![]() | 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 | | ![]() | This is the data set that the table is part of | |
name | String | ![]() | The name of the table. | |
rows | | ![]() | 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
None.
Method Details
addColumn
Adds a column to the table.
Syntax
object.addColumn ( oColumn [ ,oBefore ] ) Parameters
| Name | Type | Optional | Default | Descripton |
oColumn | | The column to add | ||
oBefore | | ![]() | 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 | | The row to add | ||
oBefore | | ![]() | 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
removeColumn
Removes a column from the table.
Syntax
object.removeColumn ( oColumn ) Parameters
| Name | Type | Optional | Default | Descripton |
oColumn | | The column to remove |
Return Type
removeRow
Removes a row from the table.
Syntax
object.removeRow ( oRow ) Parameters
| Name | Type | Optional | Default | Descripton |
oRow | | The row to remove |
