2
특정 필드가 비어 있지 않으면 (변경시) 엔터티에 사용자 지정 경고 메시지를 표시해야합니다.엔티티 양식의 CRM 2013 사용자 정의 알림
나는 글로벌 JS 메시지를 표시하는 코드를 파일을 다른 회사에 쓴 : 난 후
function checkIfAssignToIsEmpty() {
var AssignTo = Xrm.Page.getAttribute('el_assign_to').getValue();
if (AssignTo != null)
newNotification();
}
function newNotification() {
var assignToVal = Xrm.Page.getAttribute("el_assign_to").getValue();
var newNotification = GlobalFunction.addNotification('assiignToVal + The Task will assign to');
}
내가 얻을 오류 메시지 :
addNotification: function (message) { //Adds a warning message on the top of the entity Form
var notificationHTML = '<DIV class="Notification"><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD vAlign="top"><IMG class="ms-crm-Lookup-Item" alt="" src="/_imgs/error/notif_icn_crit16.png" /></TD><TD><SPAN>' + message + '</SPAN></TD></TR></TBODY></TABLE></DIV>';
var notificationsArea = document.getElementById('Notifications');
if (notificationsArea == null) return;
notificationsArea.innerHTML += notificationHTML;
notificationsArea.style.display = 'block';
},
내 엔티티 JS 파일에 내가 쓴
내 분야에서 가치를 선택하십시오개체가 속성 또는 메서드 'addNotification'을 지원하지 않습니다
도와 주실 수 있습니까?