IBM Cognos Sample Programs

CancelUI.java - Run a Report and then Cancel the request it before it is complete.

The Java CancelUI sample program runs a report and then cancels the run request.


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:
    - Report selection dropdown box
    - Cancel Report command button
    - URL text box
    - Results Display Pane
Click on the 'Cancel Report' button to run the selected report and have the run request cancelled.

Expected Results

The report is executed and then the request is cancelled.

Documentation

The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the appendix titled 'Code Samples and Language Specific Coding Practices' and the reference chapters titled 'Methods' and 'Classes'.

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.