Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
JavaScript Helper for the Lightning App to Render Cases
({
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