As I wrap up some of my existing contracts, I realize I have some spare time coming up. Far be it from me to goof off in my spare time (the alternative being cleaning and other house work, and I can’t let the wife get used to that idea), I’d much rather be solving problems people are having with their Cognos set up.
So, does your company need help building that new dashboard for the CFO? Are the reports running too slowly over your new OLAP server? Does JavaScript make your brains leak out? Drop me a line at cognospaul@gmail.com and we can come to an arrangement.
today i tried call external js from cognos
alert(“Hello”);
Not success.
You can download openlayers from internet for test.
What you can to propose for me?
How are you calling the external JS file? Are you using an absolute or relative URL?
If your tag looks like this:
<script src="myscripts.js"></script>
, then you need to put the script into the webcontents folder of each gateway.I placed geoserver on the same computer as cognos and using absolute path as
http : \\localhost :9090 \ Openlayers\Openlayers/js
Sorry. editor in this blog make me psycho .Of course, double slash after http:
http : \\localhost :9090 \ Openlayers\Openlayers.js
You can use the <code> or [sourcecode] tags to post code.
Do you have openlayers installed in your own PC or the server? Remember, it’s your browser that is interpreting the JavaScript; localhost is telling it to look for it on your own computer. If you have OpenLayers installed on the Cognos Gateway, try doing src=”..OpenLayersOpenLayers.js”
Hi Paul,
We are using Cognos 10.2. I need help for JavaScript code.
I want to add one button ‘View in PDF’ on report page. So user can export HTML output to PDF. User will always run report in HTML first and then they will export it to PDF using provided buttion. When user clicks on button ‘view in PDF’ we want to open PDF output in new cognos viewer window. Can you please help me for this requirement. We want to use Javascript only because we have other export button in report like XLS, CSV etc.