How to enforce the search operator to read-only access

How to enforce the search operator to read-only access

book

Article ID: KB0079759

calendar_today

Updated On:

Products Versions
TIBCO MDM 9.x

Description

If having a business requirement to give the read-only access to search operator on the MDM UI then use the custominit.html file to achieve this requirement.

Issue/Introduction

How to enforce the search operator to read-only access

Environment

Product: TIBCO MASTER DATA MANAGEMENT Version: All supported versions OS: All Supported Operating Systems

Resolution

Following are the steps to achieve this functionality:

-Create customInit.html file in 'Enterprise folder' under 'htmlprops',if it doesn't exist.
-Open that file and write below code:

<SCRIPT type="text/javascript">

function customInit(){

try
{

       var operator= document.getElementById("criteriaFrame");
        var readonly= operator.contentDocument.getElementById("stringSelectOpr");
        readonly.disabled=true;
    
     
}     catch(eee){console.log(eee.message);}

}

</script>

-save the above file and just refresh the page. It will automatically reflect the changes.