Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created June 19, 2019 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/e925bc4ae920cfce7594f553e7406d83 to your computer and use it in GitHub Desktop.
Save arun12209/e925bc4ae920cfce7594f553e7406d83 to your computer and use it in GitHub Desktop.
filesCard Controller
({
doInit : function(component, event, helper) {
var action = component.get("c.fetchFiles");
action.setParams({
"linkedRecId" : component.get("v.recordId")
});
action.setCallback(this,function(response){
var state = response.getState();
if(state == "SUCCESS"){
var result = response.getReturnValue()
component.set("v.filesIds",result);
}
});
$A.enqueueAction(action);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment