Example of the ClosePopup Notification

The following code is an example usage of the ClosePopup notification:

this.AttachNotificationHandler(consts.get("SWE_PROP_BC_NOTI_GENERIC"), function 
(propSet){ 
var type = propSet.GetProperty(consts.get("SWE_PROP_NOTI_TYPE"));    
if (type === "ClosePopup"){    
// The following is an example. PM's should not alert anything. Leave that to the PRs.    
alert ("Make sure you have collected all details. You next operation will save the 
record!");    
}    
});