?
Solved

Problem with iFrame after upgrading MS CRM 3.0 to 4.0

Posted on 2011-02-16
2
Medium Priority
?
745 Views
Last Modified: 2012-05-11
We have upgraded our MS CRM from version 3 to 4. Everything seems to work except for one issue we are having with a form that includes an iframe to show associated activities. The form seems to work fine in version 3.0 but not under 4.0. Under 4.0 the iframe displays blank internet page with the error "Navigation to page was cancelled".

Below is the onload javascript code;

Any help will be highly appreciated!


//To hide a tab - tab count starts at Zero.

  crmForm.all.tab3Tab.style.display = "none";
  crmForm.all.tab3.style.display = "none";

var iFrame  = document.all.IFRAME_CaseContactNotes;
var navArea = document.all.nav_incident_pbs_casecontactnoteses;
var strFrame = 'incident_pbs_casecontactnoteses';

if (crmForm.FormType == 1)
 {
  iFrame.src='about:blank';
 }
 else
 {
  if (navArea != null)
  {
    navArea.style.display = 'none';

    // The below link should use the name of the Iframe created earlier.
    //The link should reflect where the form is
    //(sales are /sfa/conts/areas.aspx for contacts and so forth).
    //The otype needs to be the object type code of the entity the Iframe is being displayed on.

    iFrame.src='/UserDefined/areas.aspx?oId=' +
          crmForm.ObjectId +
          '&oType=' +
          crmForm.ObjectTypeCode +
          '&security=852023&tabSet=' +
          strFrame;
  }
 }
0
Comment
Question by:cr8ve
2 Comments
 
LVL 10

Accepted Solution

by:
Jeff Wight earned 375 total points
ID: 34974459

The code that lets you show an associated record in an iFrame changed from 3 to 4. This shows how to do it in 4:

http://jianwang.blogspot.com/2009/05/crm-40-iframe-show-entitys-associated.html

0
 

Author Closing Comment

by:cr8ve
ID: 35114208
Many thanks.
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question