A container for the content of a report document file. actuate.Viewer.PageContent contains a comprehensive list of report elements, such as tables, charts, labels, and data items.
The PageContent object is constructed by actuate.viewer.getCurrentPageContent( ).
Table 4-49 lists actuate.viewer.PageContent functions.
String. A bookmark to identify a chart element. When the bookmark value is not given, this function returns the first chart element found in the report content.
var bviewer = this.getViewer( );
var bpagecontents = bviewer.getCurrentPageContent( );
var bchart = bpagecontents.getChartByBookmark("ChartBookmark");
bchart.setChartTitle("Orders By Country (Classic Cars)");
Use this function to access the bookmarks for specific elements in the page content. For example, to access the data element "myDataItem" on the page loaded in the myViewer viewer object, use the following code:
var element = myViewer.getCurrentPageContent( ).getDataItemByBookmark("myDataItem");
Use this function to access the bookmarks for specific elements in the page content. For example, to access the Flash object "myFlashObj" on the page loaded in the myViewer viewer object, use the following code:
var element = myViewer.getCurrentPageContent( ).getFlashObjectByBookmark("myFlashObj");
String. A bookmark to identify a gadget element. When the bookmark value is not given, the first data element found in the report content is returned.
Use this function to access the bookmarks for specific elements in the page content. For example, to access the gadget "myGadget" on the page loaded in the myViewer viewer object, use the following code:
var element = myViewer.getCurrentPageContent( ).getGadgetByBookmark("myGadget");
Use this function to access the bookmarks for specific elements in the page content. For example, to access the label "LabelOne" on the page loaded in the myViewer viewer object, use the following code:
var element = myViewer.getCurrentPageContent( ).getLabelByBookmark("LabelOne");
Use this function to access the bookmarks for specific elements in the page content. For example, to access the table mytable on the page loaded in the myViewer viewer object, use the following code:
var element = myViewer.getCurrentPageContent( ).getTableByBookmark("mytable");
Use this function to access the bookmarks for specific elements in the page content. For example, to access the text item "myTextItem" on the page loaded in the myViewer viewer object, use the following code:
var element = myViewer.getCurrentPageContent( ).getTextByBookmark("myTextItem");