Advanced Customization > Business Logic Customization > Report Generation > Report Loading > Objective > Solution > Procedure – Loading a Cognos Report
  
Procedure – Loading a Cognos Report
1. Create the file, <WindchillHome>/loadFiles/cognosReports/custom/<MyCognosReportXML>.xml based on an existing Cognos Report.
2. Use Cognos Report Studio menu item “Tools > Copy Report to Clipboard” to copy the XML definition to the system clipboard.
3. Then, paste the clipboard contents into a text editor and save it to file. This file could also be provided by PTC or another 3rd party developer.
4. Create the file, <WindchillHome>/loadFiles/cognosReports/custom/<MyCognosReportAttributes> .properties. The base names from this and the previous step must match exactly (e.g. MyCognosReport.xml and MyCognosReport.properties.)
type=report
defaultName=<MyCognosReport>
#defaultDescription=
#resourceBundle=
5. Load <MyCognosReport> using the following command.
windchill com.ptc.windchill.cognos.CognosProxy loadreports
<WindchillHome>/loadFiles/cognosReports/custom
6. Verify the report in Cognos. Refresh the “Public Folders > Windchill” folder and the <MyCognosReport> object should be listed. Use the “Run with options…” action to run the report.