Translate

Friday 2 December 2011

Shahed

Dashboard When opening report in New window and Drill back button

When you create a dashboard and you have a drill down report the drill down report opens in the same window. So when you hit the return link the drill down report also closes. Thats fine a back button can be placed in the answers request also when there are No Results a custom no results page can be added to look exactly the same but with a back button too.

Insert a static text box "contains HTML Markup" into answers request.

<table align="left">
<tr >
<td><a href="javascript:history.back();">Back</a></td>
<tr>
</table>


For No Results back button in answers just paste the code below directly into the Text box. Also removes the refresh button if needed else just strip out the function for remove refresh.

<head>
<script type="text/javascript">
window.setTimeout(removeRefresh,100);
function removeRefresh()
{

  if (document.body!=null)
  {
    var td =document.getElementsByTagName('td');
    for(var i=0;i<td.length;i++)
    {
       if(td[i].className=='ResultLinksCell')
       td[i].style.display='none';
    }
 
 } 
 else
   window.setTimeout(removeRefresh,100);
}  
   
</script>
 </head>
<table align="left">
<tr>
<td class="ErrorTitle" valign=top><img src="res/bmozilla4/common/msginfo.gif">&nbsp;</td>
<td class="ErrorTitle">No Results</td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="ErrorInfo">The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please try running report with different parameters.<span style="font-size: 4pt;"><br><br></span><font point-size=4><br></font>
<table class="FilterFirstTable" border=0 cellspacing=0>
<tr>
</tr>
</table>
 </td>
<tr>
<td><a href="javascript:history.back();">Back</a></td>
</table>

Note: only a member of this blog may post a comment.

Blog Archive



About Authors

Shahed Munir

Krishna Udathu

Shahed and Krishna are Oracle / Big Data Experts