createReportInSession() Method

In ReportService, use the createReportInSession() method to create a report in the catalog based on the bipSessionToken of a given user.

For more information about in-session methods, see About In-Session Methods.

Signature

String createReport(String reportName, String folderAbsolutePathURL, String dataModelURL, String templateFileName, byte[] templateData, String XLIFFFileName, byte[] XLIFFData, boolean updateFlag, String bipSessionToken);

Parameters for createReportInSession() Method

Parameter Description

String reportName

The report name to create with the suffix ".xdo". For example, "myreport.xdo".

String folderAbsolutePathURL

The path to the folder in which to place the created report. For example: xmlp/Reports/financials.

String dataModelURL

The path to the data model that will be used as the data source for this report. For example: xmlp/Reports/financials/Data Models/my data model.xdm.

String templateFileName

The file name of the template to add the report definition.

byte[] templateData,

The template file.

String XLIFFFileName

The file name of the XLIFF file. You must append the locale to the XLIFF file name as follows:

template_<language code>_<country code>.xlf

where

<language_code> is the two-letter ISO 639 language code

<country_code> is the two-letter ISO 639 language code

For example: template_en_us.xlf.

byte[] XLIFFData

The XLIFF file.

boolean updateFlag

If true, overwrites existing report. If false, throws error if the report exists.

String bipSessionToken

The proprietary token string generated for the user. With the bipSessionToken string, the user no longer needs to provide user credentials. The server can validate this token string and restore the session to perform operations.