Open the lookup dialog of a field in CRM 2011 from javascript -
how can launch lookup dialog of lookup field, using javascript?
here example of how launch lookup dialog custom page - based on crm2011 (post rollup 12).
var organizationurl = "http://servername:5555/organizationname"; //object type code of entity needs shown in lookup. var objecttypecode = 1000; var urltoopen = organizationurl + "/_controls/lookup/lookupinfo.aspx?lookupstyle=single&browse=0&showpropbutton=1&allowfilteroff=1&objecttypes=" + objecttypecode; //get modal window var modalwindow = json.parse(window.showmodaldialog(urltoopen, " ", "dialogheight:600px;")); //selected id returned here var selecteditemid = modalwindow.items[0].id;
Comments
Post a Comment