COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: praveenb77 on 13 Mar 2014 09:33:08 AM

Title: Cognos10 Export to Excel Javascript for Portlets
Post by: praveenb77 on 13 Mar 2014 09:33:08 AM
Hello All,

We have a requirement to have a button on the report for exporting the report into excel. But we are having the reports in Multipage dashboard which is built using Cognos Portlets. I found some common scripts to be working in individual reports, but not for the reports in the portlets.

Can anyone provide me a script that works in Cognos portlets for Export to Excel.

Thanks!
Title: Re: Cognos10 Export to Excel Javascript for Portlets
Post by: karanluniya on 05 Jun 2014 03:16:29 PM
Hey did you have any luck with the post...I am looking for the same thing...do let me know
Title: Re: Cognos10 Export to Excel Javascript for Portlets
Post by: bdbits on 06 Jun 2014 09:21:10 AM
Put this in a HTML item in the report.

<div>
<input type='Button' value="Export to Excel" onclick="javascript:gCognosViewer.getRV().viewReport('singleXLS')">
</div>