COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Sridhar Vuppugalla on 10 Jan 2014 01:50:04 AM

Title: Any option to allow the specified users to download report in cognos ?
Post by: Sridhar Vuppugalla on 10 Jan 2014 01:50:04 AM
Hello every one,

Is there any option to allow the specified set of users to download the report in cognos? In our cognos environment, we have already modified the system.xml files, and we have blocked the download option in cognos viewer. But now requirement has come, asking us to allow for set of specified users. Any one got a clue on this, pls. help us.
Title: Re: Any option to allow the specified users to download report in cognos ?
Post by: adik on 10 Jan 2014 09:45:21 AM
put a html item in your report with the following code in it:


<html>
<head>

  <script>
  function gotoUrl()
  {
  var obj=document.all['OutputFormat'];
  window.onload(gCognosViewer.getRV().viewReport(obj.options[obj.selectedIndex].value));
  }
  </script>

</head>

<body>

<p> Save report as...: </p>
  <select name="OutputFormat" onchange="gotoUrl()">
    <option value="HTML">HTML</option>
    <option value="PDF">PDF</option>
    <option value="singleXLS">Excel 2000 Single Sheet</option>
    <option value="spreadsheetML">Excel 2007</option>
    <option value="XLWA">Excel 2002</option>
    <option value="XLS">Excel 2000</option>
    <option value="CSV">Delimited text (CSV)</option>
    <option value="XML">XML</option>
  </select>

</body>
</html>
Title: Re: Any option to allow the specified users to download report in cognos ?
Post by: bdbits on 17 Jan 2014 12:03:35 PM
You can use security groups in system.xml.

http://pic.dhe.ibm.com/infocenter/cbi/v10r2m1/index.jsp?topic=%2Fcom.ibm.swg.ba.cognos.ug_cra.10.2.1.doc%2Ft_asg_hide_ui_element_system.html (http://pic.dhe.ibm.com/infocenter/cbi/v10r2m1/index.jsp?topic=%2Fcom.ibm.swg.ba.cognos.ug_cra.10.2.1.doc%2Ft_asg_hide_ui_element_system.html)

I think you want the RV_TOOLBAR_BUTTONS_DOWNLOAD item.