You need to sign in to do that
Don't have an account?
Bondicloud
Event setParams not woring if i invoke component from lightning application
Hi,
openVFpage : function (component, event, helper) {
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({"url": "https://bondicloud-dev-ed--c.ap1.visual.force.com/apex/ChittySummaryPage"});
urlEvent.fire();
}
the above code component if i invoke through app builder it is working but same component if i invoke with lightning app it throughing error as
This page has an error. You might just need to refresh it. Action failed: c$URLnavigate$controller$openVFpage [Cannot read property 'setParams' of undefined] Failing descriptor: {c$URLnavigate$controller$openVFpage}
so is it posible to open visualforce page from lightning application?
openVFpage : function (component, event, helper) {
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({"url": "https://bondicloud-dev-ed--c.ap1.visual.force.com/apex/ChittySummaryPage"});
urlEvent.fire();
}
the above code component if i invoke through app builder it is working but same component if i invoke with lightning app it throughing error as
This page has an error. You might just need to refresh it. Action failed: c$URLnavigate$controller$openVFpage [Cannot read property 'setParams' of undefined] Failing descriptor: {c$URLnavigate$controller$openVFpage}
so is it posible to open visualforce page from lightning application?
Kindly mark it as an answer if that resolves your query !