You need to sign in to do that
Don't have an account?
Leticia Monteiro Freitas 4
Passing parameter to VFPage from Lightning component
Hi, I'm trying to call a Vf page from a lightning button inside a lightning component, and it works fine,except to set my param:
<!-- ccomponnet controller> openPdf : function(component, event, helper){ var url = '/apex/nameOFPage?week=23'; var urlEvent = $A.get("e.force:navigateToURL"); urlEvent.setParams({ "url":url }); urlEvent.fire(); }, <!---- vfpagecontroller --> public class weekCTRL{ public integer week {get;set;} public Forecast_CTR_renderTable(){ } }
Hi Leticia,
Greetings!
Can you please check the below blog which will guide you in passing the parameters from Lightning component to VF page.
https://www.sfdcstuff.com/2017/07/firing-event-from-lightning-component.html
Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.
Warm Regards,
Shirisha Pathuri