Created
May 1, 2019 16:57
-
-
Save arun12209/58e45d1a326b96b0753718490f49e768 to your computer and use it in GitHub Desktop.
copyToClipboardCmpHelper
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
({ | |
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