Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var getId = cmp.get("c.GetContactData");
- getId.setParams({onlineFormId : cmp.get("v.onlineFormId")});
- //for error checking or future logic
- getId.setCallback(this, function(response) {
- var state = response.getState();
- if (state === "SUCCESS")
- {
- //console.log('success');
- cmp.set('v.contactList', JSON.parse(response.getReturnValue()));
- }
- else
- {
- //console.log(response.getError());
- }
- });
- $A.enqueueAction(getId);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement