Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created February 21, 2020 18:01
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/3cb87b1e35dd81c3d7ef63f063764c8f to your computer and use it in GitHub Desktop.
Save arun12209/3cb87b1e35dd81c3d7ef63f063764c8f to your computer and use it in GitHub Desktop.
AccountOnMapController
({
doInit : function(component, event, helper) {
let action = component.get("c.fetchAllAccounts");
action.setCallback(this,function(response){
let state = response.getState();
if(state =='SUCCESS'){
let result = response.getReturnValue();
console.log('Result returned: ' +JSON.stringify(result));
component.set("v.accObj",result);
var accounts = component.get("v.accObj");
helper.loadMap(component,event,helper,accounts);
}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