Greetings
I have recently been developing the facility to display Sharepoint documents "inline" within a form, in this case, Opportunity, in order that users are not required to click out of the record to the Documents tab.
I have created an iFrame in a one column tab with the following library code:
function onLoad() {
var recordId = Xrm.Page.data.entity.getId().replace(“{“, “”).replace(“}”, “”);
var oTypeCode = Xrm.Page.context.getQueryStringParameters().etc;
var IFrame = “IFRAME_Documents”;
var relName = Xrm.Page.data.entity.getEntityName()+”_SharepointDocument”;
SetIframeContent(IFrame, oTypeCode, relName, recordId);
}
function SetIframeContent(iframeObjId, objectType, areaName, recordId) {
var iframeObject = Xrm.Page.getControl(iframeObjId);
if (iframeObject != null) {
iframeObject.setSrc(“/userdefined/areas.aspx?oId=” + recordId + “&oType=”+ objectType + “&pagemode=iframe&security=852023&tabSet=” + areaName + “&rof=true&inlineEdit=1”);
}
}
The result is the following:
![]()
As can be seen, the controls for "Upload" etc are missing.
I've tried different browsers, increasing the height, etc. "Enable Mixed Content", "Display in iFRame" options are selected on Internet Explorer.
I am using CRM 2015 SP1 Online and Sharepoint 2010 on the same tenant.
Any ideas?
Thanks in advance
Paul