Tuesday, June 30, 2015
Monday, June 8, 2015
Displaying Iframe in CRM 2013
function Form_onload() {
//var EntityId = Xrm.Page.getAttribute("projectid").getValue();
//alert (EntityId);
if (Xrm.Page.data.entity.getId() != "") {
var oId = Xrm.Page.data.entity.getId();
var oType = 10014;
var security = "852023";
Xrm.Page.getControl("IFRAME_HistoryFrame").setSrc("userdefined/areas.aspx?oId=" + oId + "&oType=" + oType + "&pagemode=iframe&security=" + security + "&tabSet=areaActivityHistory&rof=false&inlineEdit=1");
Xrm.Page.getControl("IFRAME_ActivitiesFrame").setSrc("userdefined/areas.aspx?oId=" + oId + "&oType=" + oType + "&pagemode=iframe&security=" + security + "&tabSet=areaActivities&rof=false&inlineEdit=1");
}
else {
Xrm.Page.getControl("IFRAME_HistoryFrame").setSrc("about:blank");
Xrm.Page.getControl("IFRAME_ActivitiesFrame").setSrc("about:blank");
}
}
Subscribe to:
Posts (Atom)