IBM Cognos Sample Programs

ExecReportsUI.java - Execute, Burst and View a Report.

The Java The ExecReportsUI sample program runs or bursts a report and saves the output in the specified format.


Dependent Files

Associated files are contained under the java sample folder.
Additional files required for running are identified in the CLASSPATH definitions in the run.bat file.

How To Run The Sample Program

Double click on the file run.bat.

A window will be opened containing:
    - Report Type dropdown box
    - Report selection dropdown box
    - Burst the Report checkbox
    - Execute Report command button
    - URL text box
    - Results Display Pane
Click on the 'Execute Report' button to run the sample program.

Expected Results

The report is executed and the results are saved locally, in the file "/webcontent/samples/cmOut.xxx" under the installation directory. If Burst the Report checkbox is checked, the report will be burst to email recipients. To successfully burst the report, IBM Cognos must be configured to use an email server. The output for the report may then be checked with an appropriate application for viewing files of the selected output type. The report is not persisted in the content store.

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.