web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Grid controls not displaying in Sharepoint Associated View iframe

(0) ShareShare
ReportReport
Posted on by

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

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    This will not work since you cannot show the associated grid in an iframe. There are too many javascript dependencies on the parent frame.

    To do what you want you would need to create an HTML Webresource.

    However...I recommend not doing this because of the performance impact. Whenever you open the form, the grid would query sharepoint using a CAML query which will not provide a good experience.

    Hope this helps,

    Scott

  • PaulW Profile Picture
    on at

    Hi Scott

    I've already deployed a web resource and the Associated View is rendering in the IFrame; it's just a question of the missing view controls I'm enquiring about.

    Best wishes

    Paul

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans