Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

CRM 2016 Online: Disable the viewpicker in a lookup dialog from a subgrid with JavaScript

$
0
0

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


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>