26. Januar 2011 16:00
var viewguid = "{2EA72C8B-3441-413d-A21E-111E388B052E}";
var entityname ="contact";
var displayname ="erste custom view für Lookup";
var fetchxml = "<fetch mapping='logical'version='1.0' output-format='xml-platform'>"
+"<entity name='contact'>"
+ "<attribute name='contactid' />"
+ "<attribute name='emailaddress1' />"
+ "<attribute name='fullname' />"
+ "<filter>"
+ "<condition attribute='statecode' operator='eq' value='0' />"
+ "</filter>"
+"</entity>"
+"</fetch>";
var layoutXml = "<grid name='resultset' object='1' jump='primarycontactid' select='1' icon='1' preview='1'>" +
"<row name='result' id='contactid'>" +
"<cell name='fullname' width='300' />" +
"<cell name='emailaddress1' width='200' />" +
"</row>" +
"</grid>";
var control = Xrm.Page.ui.controls.get("primarycontactid");
control.addCustomView(viewguid, entityname, displayname, fetchxml, layoutXml, false);
}
27. Januar 2011 11:51
27. Januar 2011 12:04