Hi Guys

is it possible to create an Iframe that points to a custom entity's related
view?

For example
Cutom Entity A has a relationship with contact (contact is the primary)

I want to create an Iframe elsewhere in CRM that will show me the
assosicated view of the custom Entity when I pass it the contact object id.

All I seem to be able to do is get the full entity view which shows me ALL
the contacts not just the one I want :(

RE: Create an Iframe to point to an entity's related View by Mikec

Mikec
Thu Feb 01 20:42:01 CST 2007

Hey Guys

Here is some code that displays the opportunities associated with an
account, in an IFRAME on the account form. Firstly create the IFRAME on the
account form (my IFRAME is called IFRAME_SFA), then add the code below to the
onload form event for the account form.

//*** Start Code ***

var sBaseUrl = "http://danubecrm:5555/sfa/accts/areas.aspx?";

html = sBaseUrl;
html += "oId=" + crmFormSubmit.crmFormSubmitId.value;
html += "&oType=" + crmFormSubmit.crmFormSubmitObjectType.value;
html += "&security=" + crmFormSubmit.crmFormSubmitSecurity.value;
html += "&tabSet=areaOpps";
document.all.IFRAME_SFA.src = html;

//*** End Code ***
// Note: Dont forget to change danubecrm to your server name in the above
code.

The key to the above code is really the tabSet section, you can find out the
necessary tabSet by clicking on the normal menu link (i.e. open an account,
then click on the opportunities link from within the account), now look at
you IIS logs to see the url that was called when you clicked the
opportunities link. Each of the links from within an entity seem to have a
tabSet, another example is products from opportunities, this has a tabSet of
areaProds.

You may also need to change the base url depending on the entity you are in,
again you can find this detail from the IIS logs.

As with all code....make sure you thoroughly test this in a testing
environment to make sure if provides the desired results.

PLEASE NOTE: I am not sure if this technique would be supported by Microsoft.

Anyway hope this all helps.

Cheers,
Mikec


"Vince Curletta" wrote:

> I am interested in the same thing. If it's possible, I would like to know
> how a view might be accessed in an iframe. It would have to be filtered by
> the current contact - by passing the contact id.
>
> "al.ball" wrote:
>
> > Hi Guys
> >
> > is it possible to create an Iframe that points to a custom entity's related
> > view?
> >
> > For example
> > Cutom Entity A has a relationship with contact (contact is the primary)
> >
> > I want to create an Iframe elsewhere in CRM that will show me the
> > assosicated view of the custom Entity when I pass it the contact object id.
> >
> > All I seem to be able to do is get the full entity view which shows me ALL
> > the contacts not just the one I want :(
> >