Class actuate.report.DataItem
Description
A container for a data element in a report. DataItem provides functions to operate on a Data element, such as retrieving the data value and getting the HTML DOM element from the report data element.
Constructor
The object is constructed by report.PageContent.getDataItemByBookmark( ).
Function summary
Table 4-26 lists actuate.report.DataItem functions.
Table 4-26 actuate.report.DataItem functions getData( ) getType( ) hide( ) show( ) submit( )actuate.report.DataItem.getBookmark
Syntax
Returns the bookmark name for this data item.
Returns
Example
This example displays the data item’s bookmark in an alert box.
actuate.report.DataItem.getData
Syntax
Returns the data value of this data element.
Returns
Example
This example displays the data element’s data value in an alert box.
actuate.report.DataItem.getHtmlDom
Syntax
Returns the HTML element for this data item.
Returns
Example
This example displays the HTML DOM element for this data item inside a red border.
actuate.report.DataItem.getPageContent
Syntax
Returns the page content to which this data item belongs.
Returns
actuate.report.PageContent. report content.
Example
This example displays the viewer ID of the page content in an alert box.
actuate.report.DataItem.getType
Syntax
Returns the report element type of this object, which is data.
Returns
Example
This example checks the report element type and displays an alert if the type is not "Data".
if (myDataItem.getType( ) != "Data"){actuate.report.DataItem.hide
Syntax
Example
Use hide( ) to hide a data item object, as shown in the following code:
actuate.report.DataItem.show
Syntax
Example
Use show( ) to reveal a hidden data item object, as shown in the following code:
actuate.report.DataItem.submit
Syntax
Submits all the asynchronous operations for this DataItem. Submit( ) 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 DataItem container.
Parameters
Function. The function to execute after the asynchronous call processing is done.
Example
Use submit( ) to execute changes on a data item object, as shown in the following code:
(c) Copyright Actuate Corporation 2011 |
![]() |