Solved

Problem with iFrame after upgrading MS CRM 3.0 to 4.0

Posted on 2011-02-16
2
713 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

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…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
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 antispam), the admini…

726 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