PrxMdService.getDocumentData

Syntax

getDocumentData (report, callback);

Parameters

report. Report, an instance of the Report class.

callback. Callback procedure.

Description

The getDocumentData method gets metadata for regular report text sheet.

Example

To execute this example, the page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). The open regular report must include a text sheet. The repository must contain a regular report with the key 123, and this report must contain a text sheet. Get metadata of text sheet of the report with the key 123:

dv = reportBox.getDataView(); //get report data area
doc = dv.getDocument(); //get active sheet (text sheet)
mb = reportBox.getSource().getMetabase(); //get metabase object set for the report
service = new PP.Prx.PrxMdService({
   Metabase: mb,
   PPServiceUrl: mb.getPPServiceUrl()
}); //create service for working with regular reports
report = service.open(123); //open report 
doc.setSource(report); //set new source for the text sheet
doc.setService(service); //set new service for the text sheet
//send a request to Web service to get metadata of the regular report text sheet service.getDocumentData(report, PP.Delegate(function (sender, args) {    console.log(args) }));

After executing the example a request is sent for metadata of text sheet contained in the report with the key 123, and the browser console shows the object that contains this metadata.

See also:

PrxMdService