SHARE
TWEET

Untitled

a guest Dec 6th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var getId = cmp.get("c.GetContactData");
  2.        
  3.         getId.setParams({onlineFormId : cmp.get("v.onlineFormId")});
  4.        
  5.         //for error checking or future logic
  6.         getId.setCallback(this, function(response) {
  7.             var state = response.getState();
  8.             if (state === "SUCCESS")
  9.             {
  10.                 //console.log('success');
  11.                 cmp.set('v.contactList', JSON.parse(response.getReturnValue()));
  12.             }
  13.             else
  14.             {
  15.                 //console.log(response.getError());
  16.             }            
  17.         });
  18.        
  19.         $A.enqueueAction(getId);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top