Created
February 21, 2020 18:01
-
-
Save arun12209/3cb87b1e35dd81c3d7ef63f063764c8f to your computer and use it in GitHub Desktop.
AccountOnMapController
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
({ | |
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