14. April 2010 10:17
debugger;
var FORM_TYPE_CREATE = 1;
var ENTITY_TYPE_INCIDENT = 112;
if (crmForm.FormType == FORM_TYPE_CREATE)
{
if (window.opener)
{
var oParentCrmForm = window.opener.document.all.crmForm;
if (oParentCrmForm && oParentCrmForm.ObjectTypeCode == ENTITY_TYPE_INCIDENT)
{
var caseNumber = oParentCrmForm.all.ticketnumber.DataValue; //An dieser Stelle bekomme ich eine Fehlermeldung
crmForm.all.subject.DataValue = crmForm.all.subject.DataValue == null ? "Case: " + caseNumber : crmForm.all.subject.DataValue + " (Case: " + caseNumber + ")"
}
}
}
14. April 2010 10:20
14. April 2010 10:36
14. April 2010 11:01