Class actuate.report.Table
The Table class represents a report table element.
Member of: actuate.report.
Constructor Attributes | Constructor Name and Description |
---|---|
The Table class represents a report table element.
|
Field Attributes | Field Name and Description |
---|---|
<static> <constant> |
Table element type name.
|
Method Attributes | Method Name and Description |
---|---|
clearFilters(columnName)
Clears the filters of a given column
|
|
getColumn(columnIndex)
Returns the table data by column index
The returned data is only the data from the current visible page.
|
|
getRow(rowIndex)
Returns the table data by row index.
|
|
getType()
Returns the report element type.
|
|
groupBy(columnName)
Group the data by the given column.
|
|
hide()
Hides this element.
|
|
hideColumn(columnName)
Hides the given column.
|
|
hideDetail(columnName)
Hide the details of given group
|
|
Removes the innermost group.
|
|
setFilters(filters)
Sets the given filters.
|
|
setSorters(sorters)
Sets the given sorters.
|
|
show()
Shows this element.
|
|
showColumn(columnName)
Show the given column.
|
|
showDetail(columnName)
Show the details of given group
|
|
submit(callback)
Submits all the asynchronous operations for this chart.
|
|
swapColumns(columnName1, columnName2)
Swap two columns to achieve column reordering
|
|
Switch to another view if it exists, else keep unchanged.
|
Field Detail
<static> <constant>
{String} TYPE
Table element type name.
Method Detail
clearFilters(columnName)
Clears the filters of a given column
- Parameters:
- {String} columnName
- column name
{Array} getColumn(columnIndex)
Returns the table data by column index
The returned data is only the data from the current visible page.
- Parameters:
- {int} columnIndex
- column index, starting with 1
- Returns:
- {Array} array of string values or null if columnIndex is out of range
{Array} getRow(rowIndex)
Returns the table data by row index.
The returned data is only the data from the current visible page.
- Parameters:
- {int} rowIndex
- row index starting with 1
- Returns:
- {Array} array of string values or null if rowIndex out of range
{String} getType()
Returns the report element type.
- Returns:
- {String} "Table"
groupBy(columnName)
Group the data by the given column.
If there is an existing group, this operation will add the new group after the existing group.
If there is an existing group, this operation will add the new group after the existing group.
- Parameters:
- {String} columnName
- column name which will be added as a new innerest group to the table.
{void} hide()
Hides this element. To hide the chart bchart, use code similar to the following:
alert("Hiding chart" + bchart.getBookmark( )); bchart.hide( ); bchart.submit( );
- Returns:
- {void}
hideColumn(columnName)
Hides the given column.
- Parameters:
- {String} columnName
- column name
hideDetail(columnName)
Hide the details of given group
- Parameters:
- {String} columnName
- column name
removeGroup()
Removes the innermost group.
setFilters(filters)
Sets the given filters.
- Parameters:
- {Array} filters
- array of actuate.data.Filter instances.
- See:
- actuate.data.Filter
setSorters(sorters)
Sets the given sorters.
- Parameters:
- {Array} sorters
- array of actuate.data.Sorter instances
- See:
- actuate.data.Sorter
{void} show()
Shows this element. For example, to reveal the hidden chart bchart, use code similar to the following:
alert("Showing chart" + bchart.getBookmark( )); bchart.show( ); bchart.submit( );
- Returns:
- {void}
showColumn(columnName)
Show the given column.
- Parameters:
- {String} columnName
- column name
showDetail(columnName)
Show the details of given group
- Parameters:
- {String} columnName
- column name
{void} submit(callback)
Submits all the asynchronous operations for this chart. This function triggers an AJAX request for all asynchronous operations. When the server finishes the processing, it returns a response and the results are rendered on the page in the element's container. This example sets a chart's title to the bookmark name and pops up an alert box upon completion:
function titleBookmark(bchart){ bchart.setChartTitle(bchart.getBookmark( )); bchart.submit(alert("Title Changed")); }
- Parameters:
- {Function} callback
- Optional. A function to execute after the asynchronous call processing is done. A function to execute after the asynchronous call processing is done. Submit passes the current actuate.viewer object to the callback as an input parameter.
- Returns:
- {void}
swapColumns(columnName1, columnName2)
Swap two columns to achieve column reordering
- Parameters:
- {String} columnName1
- {String} columnName2
switchView()
Switch to another view if it exists, else keep unchanged.