IBM Cognos Sample Programs

cmQueryUI.java - Queries the content manager.

The Java cmQueryUI sample program contains methods to query content manager.


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

Initial Setup:

1. Edit the file run.bat.
2. Replace the values myusername, mypassword and mynamespace with values appropriate for your configuration.
3. Optionally, modify the value of the search parameter to a custom search path of your preference.
4. Save your changes.

At a command prompt, execute the file run.bat.

Expected Results

The results of the query will be displayed in the console.

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.