function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
teena jacobteena jacob 

how to pass the returned response values from apex to a lightning component.

Hi,

I need to pass the list of values that are getting as a response through API integration in an APEX  controller to a lightning component.

Thanks
Best Answer chosen by teena jacob
teena jacobteena jacob
Hi Waqar,
    Let me check if it helps : 
http://www.sfdcstuff.com/2017/06/how-to-fire-lightning-events-from-vf.html

Thank you,

All Answers

teena jacobteena jacob
Thank you
teena jacobteena jacob
Hi,
     I need to pass value from the apex controller (server side) to Lightning component (client side).Is there any way to do the same!

Thanks
teena jacobteena jacob
Hi,
 Thank you for the replay!
But the problem is :  this blog is on " pass parameter from Lightning component by firing event from it and handling it in VF page and display the passed parameter in VF page. "
 
Actually what I need is :
               Pass the value from apex class to lightning component, I'm passing inputs from the VF page and from that VF page it calls the apex class(API), the response getting from the class needs to pass to the lightning component.

Any help is greatly appreciated!
Thank you!
teena jacobteena jacob
Hi Waqar,
    Let me check if it helps : 
http://www.sfdcstuff.com/2017/06/how-to-fire-lightning-events-from-vf.html

Thank you,
This was selected as the best answer