Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- event.getParam('draftValues').forEach(function(draftitem){
- if(draftitem.Quantity__c==null || draftitem.Quantity__c < 0)
- {
- var toastEvent=$A.get("e.force:showToast");
- toastEvent.setParams({title:'Validation Error',
- message:'Quantity Cannot be Blank or Less than Zero for Production Years',
- key:'info_alt',
- type:'error',
- mode:'pester'
- });
- toastEvent.fire();
- }
- });
- helper.onSave(component,event);
- }
- }
- else
- {
- console.log(state);
- }
- var updatedList = response.getReturnValue();
- cmp.set("v.data",updatedList);
- this.refreshDataTable(cmp);
- });
- $A.enqueueAction(action);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement