COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: jahnavi on 16 Nov 2011 11:20:40 AM

Title: Run options using Javascript
Post by: jahnavi on 16 Nov 2011 11:20:40 AM
 Hi,

When I am running the report using the below code. Its giving the results but the prompts which are selecting previously is all Refreshing
<html><head><script language="javascript">function gotoUrl() {var obj=document.all['OutputFormat'];window.onload(gCognosViewer.getRV().viewReport(obj.options[obj.selectedIndex].value));} </script></head><body> <select name="OutputFormat" OnBlur="javascript:gotoUrl()"><option value="HTML">HTML</option><option value="PDF">PDF</option><option value="XLWA">Excel 2002</option><option value="spreadsheetML">Excel 2007</option><option value="CSV">Delimited text (CSV)</option></select> </body></html>

Pls Modify the code and help me in giving the solution for this

Thanks