CRM 2011 – IFrame opening new page problem

I had a tricky problem, where I wanted to show a grid of records on an entity which didn’t have a direct relationship with those records.

Because there wasn’t a direct relationship I couldn’t show a grid of filtered records.

The way I got around this was to show a view inside an iFrame.  On the onload of the page I would adjust the view to use guid of the regarding item on my task.

This showed a view of items filtered by the guid of the record in the regarding.  The problem then occurred when I clicked on one of the items in grid.  Instead of taking me to the item, it loaded a new page which contained just the view and then I could click the item.

I couldn’t work out why this wasn’t working so I had a look at the properties of the iFrame and there is an option

Restrict cross-frame scripting

I noticed this was ticked, so I unticked and then it was working.

The reason I think it wasn’t working was because I was trying to click on a hyperlink which would take me to the record.  I guess this hyperlink was seen as cross frame scripting, so by allowing this it allowed the hyperlink to work.

One thought on “CRM 2011 – IFrame opening new page problem

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.