Advertisement

04.17.2008 at 07:39AM PDT, ID: 23331029
[x]
Attachment Details

Problems with IFrame security settings in MS CRM 4.0

Asked by Maxi84 in SQL Server 2005, .NET, Microsoft Dynamics

Tags: javascript, html, Reporting Services, MS CRM 4.0, IE 7.0

For a client that needs to see non-CRM reports inside MS CRM 4.0, I've created the following solution:

Due to design considerations and limitations on the size of the URL that MS CRM will pass, I've made a custom .aspx page.  This page contains a tabbed view and an IFrame.  When the user clicks on a tab, the IFrame will display the corresponding report from MS SQL 2005 Reporting Services.  The .aspx page is displayed from a custom menu item that is defined in ISV.config.

One of the reports contains a three-level drilldown functionality.  When the user clicks on a link, a subreport opens, and this report again contains similar functionality.  There are also links on the report to create a new Case instance based on the chosen item in the report.

There is one problem, however:  When the user drills down, the new report opens inside the same IE instance.  My client would rather have each subreport open in a new instance.

I've modified the Jump to URL string to use javascript, using the form ="javascript:window.open('myreporturl');

However, this works well when I run the report standalone, outside MS CRM, but does NOT work inside CRM.  It does work as expected from the subreport, which when it opens takes the entire browser window and is thus not running inside CRM.

So, there seems to be a security setting that stops javascript in an IFrame.  I know this is the case for regular IFrames in a CRM entity form, where you can disable this security setting.

My question is, does anyone know how I can enable javascript in an IFrame that has NOT been declared the "normal" way in CRM?Start Free Trial
[+][-]04.18.2008 at 07:38AM PDT, ID: 21386176

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.18.2008 at 12:48PM PDT, ID: 21389060

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, .NET, Microsoft Dynamics
Tags: javascript, html, Reporting Services, MS CRM 4.0, IE 7.0
Sign Up Now!
Solution Provided By: Maxi84
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628