Solved

Problem with iFrame after upgrading MS CRM 3.0 to 4.0

Posted on 2011-02-16
2
700 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 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now