error: function (model, response, options) { XAUtil.blockUI('unblock'); if ( response && response.responseJSON && response.responseJSON.msgDesc){ if( response.responseJSON.messageList && response.responseJSON.messageList.length > 0 && !_.isUndefined(response.responseJSON.messageList[0].fieldName)){ if(response.responseJSON.messageList[0].fieldName == "parentPermission"){ XAUtil.confirmPopup({ msg :response.responseJSON.msgDesc, callback : function(){ that.model.set('checkParentPermission',XAEnums.BooleanValue.BOOL_FALSE.value); that.saveMethod(); } }); }else{ that.form.fields.name.setError(response.responseJSON.msgDesc); XAUtil.scrollToField(that.form.fields.name.$el); //XAUtil.notifyError('Error', response.responseJSON.msgDesc); } }else{ //that.form.fields.name.setError(response.responseJSON.msgDesc); //XAUtil.scrollToField(that.form.fields.name.$el); XAUtil.notifyError('Error', response.responseJSON.msgDesc); } }else XAUtil.notifyError('Error', 'Error creating Policy!'); console.log("error"); }
error: function (model, response, options) { XAUtil.blockUI('unblock'); if ( response && response.responseJSON && response.responseJSON.msgDesc){ XAUtil.notifyError('Error', response.responseJSON.msgDesc); }else XAUtil.notifyError('Error', 'Error occured while deleting asset!'); }
error: function (model, response, options) { XAUtil.blockUI('unblock'); if ( response && response.responseJSON && response.responseJSON.msgDesc){ XAUtil.notifyError('Error', response.responseJSON.msgDesc); }else XAUtil.notifyError('Error', 'Error deleting Policy!'); console.log("error"); }
error : function(resp){ if(!_.isUndefined(resp) && !_.isUndefined(resp.responseJSON) && !_.isUndefined(resp.responseJSON.msgDesc)){ XAUtil.notifyError('Error', resp.responseJSON.msgDesc); }else{ XAUtil.notifyError('Error', "Error occunred while updating user"); } collection.trigger('error','',resp) },
error : function(model,resp){ XAUtil.blockUI('unblock'); console.log('error'); if(!_.isUndefined(resp.responseJSON) && !_.isUndefined(resp.responseJSON.msgDesc)){ XAUtil.notifyError('Error',resp.responseJSON.msgDesc); }else XAUtil.notifyError('Error', "Error occurred while creating/updating module permissions."); }
error : function(model,resp){ XAUtil.blockUI('unblock'); if(!_.isUndefined(resp.responseJSON) && !_.isUndefined(resp.responseJSON.msgDesc)){ if(resp.responseJSON.msgDesc == "XUser already exists"){ XAUtil.notifyError('Error',"User already exists."); } else { XAUtil.notifyError('Error',resp.responseJSON.msgDesc); } }else { XAUtil.notifyError('Error', "Error occurred while creating/updating user."); } }
error : function(response,model){ XAUtil.blockUI('unblock'); if ( response && response.responseJSON && response.responseJSON.msgDesc){ if(response.status == '419'){ XAUtil.defaultErrorHandler(model,response); }else{ XAUtil.notifyError('Error', response.responseJSON.msgDesc); } } else { XAUtil.notifyError('Error', 'File import failed.'); } }
error : function (model, response, options) { XAUtil.blockUI('unblock'); if ( response && response.responseJSON && response.responseJSON.msgDesc){ if(response.responseJSON.msgDesc == "XGroup already exists"){ XAUtil.notifyError('Error', "Group name already exists"); } else { XAUtil.notifyError('Error', response.responseJSON.msgDesc); } }else { XAUtil.notifyError('Error', 'Error occurred while creating/updating group!'); } }
error : function(model,resp){ XAUtil.blockUI('unblock'); if(!_.isUndefined(resp.responseJSON) && !_.isUndefined(resp.responseJSON.msgDesc)){ if(resp.responseJSON.msgDesc == "serverMsg.userMgrNewPassword"){ XAUtil.notifyError('Error','Invalid new password'); } else { XAUtil.notifyError('Error',resp.responseJSON.msgDesc); } } else { XAUtil.notifyError('Error', "Error occurred while creating/updating user."); } }
'error' : function(model,resp){ var errorMsg = 'Error rollovering key!'; XAUtil.blockUI('unblock'); if(!_.isUndefined(resp) && !_.isUndefined(resp.responseJSON) && !_.isUndefined(resp.responseJSON.msgDesc)){ errorMsg = resp.responseJSON.msgDesc; } XAUtil.notifyError('Error', errorMsg); }
error : function(collection,resp){ var errorMsg = 'Error getting key list!!'; if(!_.isUndefined(resp) && !_.isUndefined(resp.responseJSON) && !_.isUndefined(resp.responseJSON.msgDesc)){ errorMsg = resp.responseJSON.msgDesc; } XAUtil.notifyError('Error', errorMsg); collection.state = that.defaultsCollstate; collection.reset(); }
error : function(model, response, options) { XAUtil.blockUI('unblock'); var msg = that.editPolicy ? 'Error updating policy.': 'Error creating policy.'; if (response && response.responseJSON && response.responseJSON.msgDesc) { XAUtil.showErrorMsg(response.responseJSON.msgDesc); } else { XAUtil.notifyError('Error', msg); } }
error: function (model, response, options) { XAUtil.blockUI('unblock'); if ( response && response.responseJSON && response.responseJSON.msgDesc){ if(response.responseJSON.msgDesc == "serverMsg.fsDefaultNameValidationError"){ that.form.fields.fsDefaultName.setError(localization.tt(response.responseJSON.msgDesc)); XAUtil.scrollToField(that.form.fields.fsDefaultName.$el); }else if(response.responseJSON.msgDesc == "Repository Name already exists"){ response.responseJSON.msgDesc = "serverMsg.repositoryNameAlreadyExistsError"; that.form.fields.name.setError(localization.tt(response.responseJSON.msgDesc)); XAUtil.scrollToField(that.form.fields.name.$el); }else if(response.responseJSON.msgDesc == "XUser already exists"){ response.responseJSON.msgDesc = "serverMsg.userAlreadyExistsError"; that.form.fields.userName.setError(localization.tt(response.responseJSON.msgDesc)); XAUtil.scrollToField(that.form.fields.userName.$el); }else XAUtil.notifyError('Error', response.responseJSON.msgDesc); }else XAUtil.notifyError('Error', 'Error creating Asset!'); console.log("error"); }
roleCollection : function(numberOfRole, count ,notDeletedRoleName, errorMsgForNotDeletedRoles){ if(count == numberOfRole){ this.roleList.getFirstPage({fetch:true}); this.roleList.selected = {}; XAUtil.blockUI('unblock'); if(notDeletedRoleName === "" && _.isEmpty(errorMsgForNotDeletedRoles)){ XAUtil.notifySuccess('Success','Role deleted successfully!'); } else { var msg = ""; if(!_.isEmpty(notDeletedRoleName)){ msg = 'Error occurred during deleting Users: '+ notDeletedRoleName.slice(0 , -2); } XAUtil.notifyError('Error', errorMsgForNotDeletedRoles + msg); } } },
error : function(msResponse){ XAUtil.notifyError('Error', 'Invalid input data!'); }
error: function (model, response, options) { XAUtil.blockUI('unblock'); XAUtil.notifyError('Error', 'Error creating Policy!'); console.log("error"); }
error:function(response,options){ XAUtil.blockUI('unblock'); XAUtil.notifyError('Error', 'Error deleting Group!'); }
error :function(model, response) { XAUtil.blockUI('unblock'); if(!_.isUndefined(response) && !_.isUndefined(response.responseJSON) && !_.isUndefined(response.responseJSON.msgDesc && response.status !='419')){ XAUtil.notifyError('Error', response.responseJSON.msgDesc); } }