+ Start a Discussion
buyan thyagarajanbuyan thyagarajan 

Passing record ids from visual force page to lightning component

Hi Guys,
We have a requirement Is to embed a grid of child objects on a detail page. We have to do a visual force page and embed a lightning component on it because you cannot embed lightning components on existing sections on a standard lightning page. On the grid, there is an edit option where we have to pass the record id from visual force to lightning component. Do you guys know how to do it or have done something where you have a lightning component wrapped around a visual force page?
Buyan

 
Deepali KulshresthaDeepali Kulshrestha
Hi Buyan,

I've gone through your requirement and there is one option would be to dispatch a lightning event with the text field value from the Visualforce page to the lightning component.
I have included a link to a blog post that shows how you can fire events from visual force and handle within lightning.

http://cloudyworlds.blogspot.com/2016/02/lightning-events-via-visualforce.html


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com