COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: br54016 on 03 Jan 2018 03:57:15 PM

Title: Executing Report with Javascript in C11
Post by: br54016 on 03 Jan 2018 03:57:15 PM
We have created a report that will be set as the 'Home Page'.  The report display a set of 'Cards' the user can click to run a report. 

We would like the report to open and be available in the dropdown at the middle of the C11 interface.  Currently the report opens as a separate tab in the browser (also open another 'Home Page' report). 

Here is the javascript for one of the cards.

<!DOCTYPE html>
<html>
<body>

<div class="card">


  <div class="container">
<a href="https:./../?pathRef=.public_folders%2F REPORT NAME HERE &format=HTML&prompt=true&action=run&p_P_Perspective=1" target='_new' >
  <img src="../../samples/images/imagename.png" alt="Resource Utilization" align="middle" style="width:50%" >
    <h4>CARD NAME</h4>
    <p>CARD DESCRIPTION</p>
  </div>
</div>

</body>
</html>