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