TEXT POP-UP WINDOW IN COGNOS REPORT

A customer has a report with some areas that need more explanation about the data or graphic. This is possible to just simple add a text item to the report with some text, but then there is a problem that it is always visible.

With this code it is possible to place the text in a popup window. If they click on the header name, defined in the script, a popup window will show. Click again on the header name to make it invisible again.

How to use:

Continue reading

PDF button in report

I came across a solution to get a PDF button in the report.
Drag a HTML item into the report and put in the following script:
<html>
<head>
<script language=”javascript”>
function gotoPDF()
{var obj=document.all[‘OutputFormat’];
var value=”PDF”;
/* Below function passed the selected output format to the server */
window.onload(gCognosViewer.getRV().viewReport (value));
}
</script>
</head>
<body>
</body>
<button style=”background-color:white” onclick=”gotoPDF()”>Open in PDF</button>
Another option is to create a drill link to the report it self.