Class actuate.report.TableA container for a Table element in a report. Table provides functions to operate on a Table element, such as manipulating columns, groups, and data.Table 4-36 lists actuate.report.Table functions.
Table 4-36 Gets the Table data by column index and returns only the data from the current visible page getRow( ) getType( ) groupBy( ) hide( ) show( ) submit( ) Submits all the asynchronous operations that the user has requested on this report and renders the Table component on the page Integer. Optional. The numerical index of the column from which to retrieve data. The getColumn( ) function returns the values for the first column when no value is provided for columnIndex.Integer. Optional. The numerical index of the row from which to retrieve data. The getRow( ) function returns the values for the first row when no value for rowIndex is provided.Groups the data in a table by the values in a given column. If there is an existing group, this operation will add the new group after the existing group.Hides information for a column from the grouped data displayed on the page. If every column is hidden, only the group name is visible.This example removes the inner-most group from myTable and displays an alert box after calling submit( ):actuate.data.Filter object. A single filter condition to apply to this Table.An array of actuate.data.Filter objects. Filter conditions to apply to this Table.To add a filter to the Table to display only entries with a CITY value of NYC, use the following code:var city_filter = new actuate.data.Filter("CITY", actuate.data.Filter.EQ, "NYC");actuate.data.Sorter object. A single sort condition to apply to this Table.An array of actuate.data.Sorter objects. Sort conditions to apply to this Table.Use show( ) to reveal a report Table, as shown in the following code:Displays information for a column from the grouped data displayed on the page. If every column is hidden, only the group name is visible.This example shows the information from the PRODUCTLINE column in the grouped data that is displayed for myTable:Submits all the asynchronous operations for this Table element. The submit( ) function triggers an AJAX request to submit all the asynchronous operations. When the server finishes the processing, it returns a response and the results are rendered on the page in the table container.
|
|
Copyright Actuate Corporation 2012 |