Translate

Friday, 2 December 2011

Shahed

Dashboard Specific remove Print ICON

The script below enables you to remove the Dashboard print icon for a specific Dashboard as sometimes it gets confusing for users between the answers print icon and dashboard icon

Insert a Text box anywhere on the dashboard "Contains HTML"
Paste the following code into the text box

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

  if (document.body!=null)
  {
    var rows =document.getElementsByTagName('a');
    for(var i=0;i<rows.length;i++)
    {
       if(rows[i].title=="Printer Friendly")
       rows[i].style.display='none';
    }
 
 } 
 else
   window.setTimeout(removePrintIcon,100);
}  
  
  
</script>



Thats it view your dashboard and the dashboard print icon for that particular dashboard will disappear.

Blog Archive

About Authors

Shahed Munir

Krishna Udathu

Shahed and Krishna are Oracle / Big Data Experts