Description:
In this example we explain that how to open Lookup as dialog in Dynamic CRM using HTML Web Resource. Or how to open Lookup as Popup or Dialog in custom HTML using HTML Web Resource and JavaScript in Dynamic CRM.or how to open Dynamic CRM Lookup as Dialog Box using XRM.
Here we demonstrate
that how to open Lookup in Dynamic CRM using JavaScript. Or how to show Lookup
as Dialog programmatically using Xrm Utility in Dynamic CRM.below is the
JavaScript code with XRM to open or show Lookup as Dialog or Modal Popup in
Dynamic CRM.
function
OpenLookup(objecttypecode) {
var DialogOptions = new
Xrm.DialogOptions();
DialogOptions.width =
800;
DialogOptions.height =
600;
var url = serverurl + "/_controls/lookup/lookupsingle.aspx?class=null&objecttypes="
+ objecttypecode + "&browse=0&ShowNewButton=0&ShowPropButton=1&DefaultType=0";
Xrm.Internal.openDialog(url, DialogOptions, null,
null, CallbackFunction);
}
function
CallbackFunction(event) {
var name = event.items[0].name;
var id = items[0].id;
}
0 comments:
Post a Comment