createReport() Method
In ReportService, use the createReport() method to create a report in the catalog.
The method enables you to set the path to the data model and supply template files and translation (XLIFF) files to the report definition.
Signature
String createReport(String reportName, String folderAbsolutePathURL, String dataModelURL, String templateFileName, byte[] templateData, String XLIFFFileName, byte[] XLIFFData, boolean updateFlag, String userID, String password);
Parameters for createReport() 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: |
String dataModelURL |
The path to the data model that will be used as the data source for this report. For example: |
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:
where
For example: template_en_us.xlf |
byte[] XLIFFData |
The XLIFF file. |
boolean updateFlag |
If |
String userID |
Specifies the user name. |
String password |
Specifies the password for the user name. |