2008-09-19

На событие OnSave формы сущности account


/*Start:Script added by Me*/
var CRM_FORM_TYPE_CREATE=1;
var CRM_FORM_TYPE_QCREATE=5;
var Return;
/******* comment 21.04 *******/
if ((crmForm.FormType==CRM_FORM_TYPE_CREATE)||(crmForm.FormType==CRM_FORM_TYPE_QCREATE))
{
var str="http://servername/Dedup/duplicatelist.aspx?name=" + escape(crmForm.all.name.DataValue)+"&EntityTypeId=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
Return = showModalDialog(str,"","resizable=yes;");
if(Return==true)
{ /* продолжить сохранение */
event.returnValue = true;
return true;
}
else
{ /* отменить сохранение */
event.returnValue = false;
crmForm.detachCloseAlert();
//return false;
window.close();
}
}
/******* comment 21.04 *******/
/*End:Script added by Me*/

Комментариев нет: