When you create a report, make it available to users by
adding an entry, including a link to the report, to the reports-config.xml file.
If you later create a different version of the report, you can modify
an existing entry’s link to the point to the new report.
About this task
Edit a report’s link or add new links for custom reports
in the reports-config.xml file.
Procedure
- On the computer where Cognos® BI
Server is installed, open the reports-config.xml file
for editing.
The file is typically located in the following
directory:
IBM\WebSphere\AppServer\profiles\Profile_Name\config\cells\Cell_Name\LotusConnections-config\metrics
for
example:
IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\cognos01\LotusConnections-config\metrics
- In the reports-config.xml file, locate
the section that represents the report you want to modify.
The
description for each report begins with an entry
tag
that specifies the report ID and label so you can identify it.
<entry id="customized_report" type="report" label="CUSTOMIZED_REPORT_LABEL">
- Add a link for a custom report by inserting a child node
named
link
within the entry
tag
(add a node for each report link).For a custom global
report, insert a child node named
link
within the
<entry>
tag
(add a node for each new report’s link).
Note: In the link, format the URL as a CDATA
element
and omit the domain and port as shown in the example that follows.
<entry id="global_customized_report_1" type="report" label="GLOBAL_CUSTOMIZED_REPORT_LABEL_1">
<link>
<!<CDATA</servlet/dispatch/ext?b_action=cognosViewer&ui.action=run&ui.name=main&run.outputFormat=&run.prompt=false&cv.header=false&cv.toolbar=false&ui.object=%2fcontent%2fpackage%5b%40name%3d%27metrics%27%5d%2ffolder%5b%40name%3d%27global%27%5d%2ffolder%5b%40name%3d%27customized%27%5d%2freport%5b%40name%3d%27main%27%5d]]>
</link>
</entry>
For a custom community report, only
need to specify the report name, without the URL:
<entry id="commuity_customized_report_1" type="report" label="COMMUNITY_CUSTOMIZED_REPORT_LABEL_1">
<link> Community_report_name </link>
</entry>
- Save and close the file.
- Refresh the browser before viewing the report to verify
the new link.
There is no need to restart the Cognos BI Server.