iFrame URLs: Another unexpected UR12 modification

I was moving some custom code into a customer’s development environment when I noticed what I consider a breaking change that I am assuming was added in Update Rollup 12.

The URL field on an iFrame’s properties is now converted to a fully-qualified URL.

Imagine starting with this:

image

 

Here we have a custom ASP.NET web page located in the ISV folder system.

If you edit this field’s value, it will turn into this:

image

 

Which is an invalid URL.

 

UPDATE: It gets worse. It seems that we can’t use the standard placeholder of about:blank either.

 

Our only option, at this point, is to actually set the value of the iFrame using JavaScript:

 

Xrm.Page.getControl("IFRAME_History").setSrc("/ISV/CustomPages/AccountHistory.aspx");

 

Note: This is only an issue if you edit the iFrame properties. If you leave them alone, you will not encounter this problem.

Leave a Reply 0 comments