Hello,
I added this code to a form on crm online 2016 wave 1:
function disableViewPicker () {
var lookup = Xrm.Page.getControl("lookup_WorkTags");
if (lookup) {
var id = "{E57F5DE2-7764-E611-80DD-C4346BAC0E68}";
var defaultView = lookup.getDefaultView();
if (defaultView != id) { lookup.setDefaultView(id); }
lookup.SetParameter("disableViewPicker", "1");
}
setTimeout( function () { disableViewPicker(); } , 1000);
}
I want to set the default view and disable the viewpicker. First works , second not. Does anyone have an idea to make that happen. MS supported...;-).? BTW I also tried to use the GUI to configure this. No success....
Frank