IBM Cognos Sample Programs
CreateReportUI.java - Creates a new report in the content store.
The Java CreateReportUI sample program contains methods to create a new report in the content store.
Dependent Files
Associated files are contained under the java sample folder.
Additional files required for running are identified in the CLASSPATH definitions in run.bat file.
How To Run The Sample Program
Double click on the file run.bat.
A window will be opened containing:
- Create Report command button
- URL text box
- Output Pane
Click on the 'Create Report' button to run the sample program.
Enter information as directed in the pop up dialogs to select
- the package to contain the new report
- the name of the new report
- the columns for the report
The sample has been coded to work with the Go Data Warehouse (query) package.
To work with another package, you may need to edit the Metadata class to select nodes differently.
(Edit both occurrences of "/ResponseRoot/folder/folder/folder/querySubject")
Expected Results
A new report will be created in the content store.
Documentation
The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the chapter titled 'Methods' and the appendix titled 'Code Samples and Language-Specific Coding Practices'.
Please note that the samples are not intended to be treated as end-user applications. Refer to the sample code for examples of how to use the API when developing your own applications.