Last active
August 29, 2015 14:20
-
-
Save keirbowden/aa88ac8c8f33d065f143 to your computer and use it in GitHub Desktop.
JavaScript Helper for the Lightning App to Render Cases
This file contains 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
({ | |
getCases : function(component) { | |
var action = component.get("c.GetRecentCases"); | |
var self = this; | |
action.setCallback(this, function(a) { | |
try | |
{ | |
var cases=a.getReturnValue(); | |
console.log('Result = ' + JSON.stringify(cases)); | |
component.set("v.cases", cases); | |
} | |
catch (e) | |
{ | |
alert('Exception ' + e); | |
} | |
}); | |
$A.enqueueAction(action); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment