Solved

Problem with iFrame after upgrading MS CRM 3.0 to 4.0

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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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