- displaying custom entities in an iframe
- Posted by Saira on May 15th, 2008
Hi all
I've found various resources on the web with details of how to do this, and
have nearly got it sorted, but have come unstuck at the last hurdle and was
wondering whether anyone out there could see the error in my logic/code
I created an iframe on Case to display details about all Payment Plans
associated with the Case. I put the below into the load of the form.
if (crmForm.FormType==1)
{
document.all.IFRAME_PaymentPlan.src="about:blank";
}
else
{
var nav_incident_fived_paymentplans;
nav_incident_fived_paymentplans=document.all.nav_i ncident_fived_paymentplans;
if (nav_incident_fived_paymentplans!= null)
{
nav_incident_fived_paymentplans.style.display
= "none";
document.all.IFRAME_PaymentPlan.src="/userdefined/edit.aspx?oId="
+ crmForm.ObjectId + "&oType=" + crmForm.ObjectTypeCode +
"&security=852023&tabSet=incident_fived_paymentpla ns";
}
}
The area is invisible in the navigation frame (as expected), but when I
click on the tab with the iframe on it i get an error message saying that
"Value cannot be null. Parameter name: String"
If i run the address the code built in IE, i get the same error message.
The address that is being built for the iframe is:
/userdefined/edit.aspx?oId={BAA9EF0B-0021-DD11-B617-0015C5E96363}&oType=112&security=852023&tabSet=inc ident_fived_paymentplans
(I appended the server name on the beginning to test it.)
Any help appreciated
Thanks very much
Saira
- Posted by Avogadro on May 15th, 2008
try replacing /userdefined/edit.aspx with areas.aspx
I just did this on two custom entities and it only worked with "areas.aspx"
"Saira" wrote:
- Posted by Saira on May 19th, 2008
Hi
Thanks for the tip.
Now i get a stack error
Stack:
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) at
System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
Any ideas?
"Avogadro" <Avogadro@discussions.microsoft.com> wrote in message
news
9F60BE4-FDA2-45B8-86B7-6328E018748A@microsoft.com...
- Posted by Saira on May 19th, 2008
After various bits of experimentation i discovered the base url i need is
sfa/accts/areas.aspx?
FYI to anyone else struggling with this, it is for an entity linking to a
custom entity.
"Saira" <saira@5d.com> wrote in message
news:OiJ5dgZuIHA.1936@TK2MSFTNGP04.phx.gbl...
- Posted by Saira on May 19th, 2008
Actually this is getting even stranger.
I have got the below to work with two custom entities, but with a third it
does not.
I have also tried to put the activities or the activity history of the case
into an iframe and i either get the original error. the stack trace or
"navigation to the web page is cancelled" refresh this page.
I'm stuck again :-(
"Saira" <saira@5d.com> wrote in message
news:ueO3saauIHA.3484@TK2MSFTNGP06.phx.gbl...