Hi All,
Here is the code to show the other entity 1:N (CRM left nav) in to an IFRAME.
crmForm.all.IFRAME_ReasonsforRejection.src = GetFrameSource("new_new_tripmanagement_new_tripmanagementreje");
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";
}
}
//Note:
/// To identify the GetFrameSource('XXXXXXXXXXXXXX');
// XX = relationship name(open the entity and identify the relationship which you created)
To Show the N:N Relationship entity in to an IFRAME.
crmForm.all.IFRAME_NatureofBusiness.src = GetFrameSourceNN(new_new_natureofbusiness_account');
//IFRAME_NatureofBusiness = Name of the IFrame.
function GetFrameSourceNN(tabSet)
{
if (crmForm.ObjectId != null)
{
var oId = crmFormSubmit.crmFormSubmitId.value;
var oType =crmFormSubmit.crmFormSubmitObjectType.value;
var security = crmFormSubmit.crmFormSubmitSecurity.value;
return "areas.aspx?oId=" + oId + "&oType=" + oType + "&security=" +
security + "&roleOrd=2" + "&tabSet=area" + tabSet
}
else
{
return "about:blank";
}
}
//Note:
/// To identify the GetFrameSourceNN('XXXXXXXXXXXXXX');
// XX = relationship name(open the entity and identify the relationship which you created).
Cheers....!
No comments:
Post a Comment