Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM 4.0 IFrame: Show Entity’s Associated View

$
0
0

I have created a custom entity called 'Stakeholder' which is related to company. I want to show the associated view of stakeholder in a tab on the company form.

I have looked at countless websites but it doesnt see to work, is there a problem with the code I have? or is it not possible with custom entities?

This is the code that doesnt appear to work:

function GetFrameSource(tabSet) {
    if (crmForm.ObjectId != null) {

        var oId = crmForm.ObjectId;
        var oType = crmForm.ObjectTypeCode;
        var security = crmFormSubmit.crmFormSubmitSecurity.value;

        return "areas.aspx?oId=" + oId + "&oType=" + oType + "&security=" + security + "&tabSet=" + tabSet;
    }

    else {
        return "about:blank";
    }
}

crmForm.all.IFRAME_Stakeholder.src = GetFrameSource("areaStakeholder");


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>