Tuesday, March 15, 2016

Display View based on Roles in Javascript MSCRM CRM 2011

Hi All,

Display the View based on the role and View

if (document.getElementById('crmGrid') && document.getElementById('crmGrid').GetParameter('viewid')) {
            var currViewId = document.getElementById('crmGrid').GetParameter('viewid');

            if (currViewId) {
                var viewName = getTheViewName(currViewId);

                if (viewName) {
                    if (viewName.toLowerCase() == "Customer Name") {
                        return true;
                    }
Else
{
return false;
}
                }
            }
        }

function getTheViewName()
{
//get the View Name based on Role

}

No comments:

Post a Comment

Day 11 - Customizing Option Sets Dropdown Fields with JavaScript

  In this Blog, we will see how to Customizing Option Sets Dropdown Fields with JavaScript label1 = formContext.getAttribute( "bosch_op...