Solved

Problem with iFrame after upgrading MS CRM 3.0 to 4.0

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

13 Experts available now in Live!

Get 1:1 Help Now