Created
September 25, 2017 01:37
-
-
Save karanrajs/26b805c1d731bd3d225e1e38d13214f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleSelect : function (component, event, helper) { | |
var stepName = event.getParam("detail").value; | |
component.set("v.picklistField.status",stepName); | |
component.find("record").saveRecord($A.getCallback(function(saveResult) { | |
if (saveResult.state === "SUCCESS" || saveResult.state === "DRAFT") { | |
component.find('notifLib').showToast({ | |
"variant": "success", | |
"message": "Record was updated sucessfully", | |
"mode" : "sticky" | |
}); | |
} else { | |
component.find('notifLib').showToast({ | |
"variant": "error", | |
"message": "Unfortunately, there was a problem updating the record.", | |
"mode" : "sticky" | |
}); | |
} | |
})); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment