IBM Cognos Sample Programs
CopyMoveReportUI.java - Copies or Moves a report to another location.
The Java CopyMoveReportUI sample program will copy or move a report to another location with a same name or under a different name
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 or run.sh file.
How To Run The Sample Program
Double click on the file run.bat for WINDOWS or run.sh for UNIX.
A window will be opened containing:
- Run Option selection dropdown box
- Report selection dropdown box
- Run Option command button
- URL text box
- Output Pane
Select a Sample Option and click on the 'Run Option' button to run the sample program.
Expected Results
When the 'Copy' option is selected, a copy of the report identified in the report name combo box will be
created to the 'My Folders' in IBM Cognos Connection.
When the 'Copy Rename' option is selected, a copy of the report identified in the report name combo box will be
created to the 'My Folders' in IBM Cognos Connection with a different name.
When the 'Move' option is selected, the report identified in the report name combo box will be
moved to 'My Folders' in IBM Cognos Connection.
When the 'Move Rename' option is selected, the report identified in the report name combo box will be
moved to 'My Folders' in IBM Cognos Connection with a different name.
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.