Actuate JavaScript API classes : Class actuate.data.ReportContent

Class actuate.data.ReportContent

Description

The ReportContent class specifies downloaded content.

Constructor

Syntax

actuate.data.ReportContent(data)

The ReportContent class specifies downloaded content.

Parameters

data

String.

Function summary

Table 4-11 describes actuate.data.ReportContent functions

actuate.data.ReportContent.getTextContent

Syntax

string ReportContent.getTextContent( )

Returns the text in the downloaded content.

Returns

String. The text in the downloaded content.

Example

To make a callback function that prints back the first line of text from some downloaded content back onto the page, use code similar to the following:

function callback(data1){
  var rcontent = data1.ReportContent.getTextContent( );
  var contentArray = rcontent.split("\n");
  var items = contentArray.length
  document.write("<P>\n")
  document.write(listItems.arguments[o] + "\n</P>")
}

(c) Copyright Actuate Corporation 2011