Class actuate.report.TextItem
Description
A container for a text element in a report. TextItem provides functions to operate on a text element, such as retrieving the text value and getting the HTML DOM element from the report text element.
Constructor
The TextItem object is constructed by viewer.PageContent.getTextByBookmark( ).
Function summary
Table 4-31 lists actuate.report.TextItem functions.
Table 4-31 actuate.report.TextItem functions getText( ) getType( ) hide( ) show( ) submit( )actuate.report.TextItem.getBookmark
Syntax
Returns the bookmark name for this text item.
Returns
Example
This example displays the table’s bookmark in an alert box.
actuate.report.TextItem.getHtmlDom
Syntax
Returns the HTML element for this Text.
Returns
Example
This example displays the HTML DOM element for this text item inside a red border.
actuate.report.TextItem.getPageContent
Syntax
Returns the page content to which this Text belongs.
Returns
actuate.viewer.PageContent. report content.
Example
This example displays the viewer ID of the page content in an alert box.
actuate.report.TextItem.getText
Syntax
Returns the text of this text element.
Returns
Example
This example displays the text of the myTextItem object in an alert box.
actuate.report.TextItem.getType
Syntax
Returns the report element type of this object, which is Text.
Returns
Example
This example checks the report element type and displays an alert if the type is not "Text".
if (myTextItem.getType( ) != "Text")actuate.report.TextItem.hide
Syntax
Example
This example hides myTextItem.
actuate.report.TextItem.show
Syntax
Example
This example shows myTextItem.
actuate.report.TextItem.submit
Syntax
Submits all the asynchronous operations for this TextItem. The submit( ) function triggers an AJAX request for all asynchronous operations. The server returns a response after processing. The results render on the page in the TextItem container.
Parameters
Function. The function to execute after the asynchronous call processing is done.
Example
This example uses submit( ) after calling show( ) to show myTextItem.
(c) Copyright Actuate Corporation 2011 |
![]() |