How to disable the View All button from the Browse And Search screen?

How to disable the View All button from the Browse And Search screen?

book

Article ID: KB0083935

calendar_today

Updated On:

Products Versions
TIBCO MDM -
Not Applicable -

Description

Description:
How to disable the View All button from the Browse And Search screen?

Issue/Introduction

How to disable the View All button from the Browse And Search screen?

Resolution

Out-of-the-box, it is not possible to disable/hide the "View All" button in the Browse&Search Screen. See the attached screenshot (Filename: disableviewall.png)  to see where the View All link exists on the screen.

Disabling View All can be achieved using custominit.html. The custominit.html is to be placed under the $MQ_COMMON_DIR/$MQ_COMMON_DIR/<enterprise_short_name>/htmlprops/ directory.

<SCRIPT id="customInitId" language="JavaScript" type="text/javascript">

function customInit(){
    var rf= document.getElementById("resultsFrame");
if (rf != null) {
    rf.onload = function() {
            disableViewButton(rf);
       };

    }
}
function disableViewButton(rf) {
try{

        var rfd= rf.contentWindow.document;
        var viewAll= rfd.getElementById("btnViewAllImage");

        viewAll.setAttribute("value","Out of order");    

        viewAll.setAttribute("disabled", "true");     
        viewAll.style.display="none"; 
        viewAll.setAttribute("hidden", "true");
        viewAll.hidden=true;     

} catch(eee){console.log(eee.message);}

}

</SCRIPT>

Attachments

How to disable the View All button from the Browse And Search screen? get_app