Tuesday, May 11, 2010

OBIEE Remove Default button from one dashboard only

If you want to remove these from one page only:

image

Add a textbox to your dashboard page:

image 

Check the “contains HTML markup box”

Add the following script:

[code]

<script type="text/javascript">
    function RemoveDefaults() {

        var tds = document.getElementsByTagName('span');
        for (var td = 0; td < tds.length; td++) {

            if (tds[td].className != 'DashboardFormatLinks') {
                continue;
            }

            //alert(tds[td].innerHTML);
            tds[td].innerHTML = "&nbsp";

        }
    }
    window.onload = RemoveDefaults;
</script>

[\code]

et voila:
image

Till Next Time

2 comments:

Andrew said...

Great post, thanks. (how did you come up with that javascript??)

As a follow-up, is there a way to remove just the (buggy) Print PDF function - while leaving the (working) Print HTML function?

John Minkjan said...

@Andrew

Have a look here: http://obiee101.blogspot.com/2010/05/obiee-remove-pdf-print-option-for-one.html (still crude but it might get you started)

regards

John