locked
CRM 4.0 IFrame: Show Entity’s Associated View RRS feed

  • Question

  • 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");

    Wednesday, July 31, 2013 8:48 AM

All replies

  • 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");

    Wednesday, July 31, 2013 8:46 AM
  • 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");

    Wednesday, July 31, 2013 8:47 AM