Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created May 1, 2019 16:57
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/58e45d1a326b96b0753718490f49e768 to your computer and use it in GitHub Desktop.
Save arun12209/58e45d1a326b96b0753718490f49e768 to your computer and use it in GitHub Desktop.
copyToClipboardCmpHelper
({
getsObjectName : function(component, event, helper) {
let action = component.get("c.fetchsObjectDetails");
action.setParams({
"recId" : component.get("v.recordId")
});
action.setCallback(this,function(response){
let state = response.getState();
if(state == 'SUCCESS'){
let result = response.getReturnValue();
console.log('Result returned: '+result);
component.set("v.wrapperObj",result);
}else{
console.log('Something went wrong!');
}
});
$A.enqueueAction(action);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment