You need to sign in to do that
Don't have an account?
Pramodh Kumar
Could not able to open same action in the Lightning quick actions
I have a requirement in the lightning quick actions. When I click on the action it should open in a new window,
Thanks
The Problem is for the first time it is working absolutely fine. but for the next time if want to use the same action again. I could not able to do.
The lightning component I used here is
Here is Code.
The lightning component I used here is
Here is Code.
({ doInit : function(component) { var recordId =component.get("v.recordId") urlEvent.setParams({ "url": '/'+url }); urlEvent.fire(); } })
Thanks
Thanks
pRAMODH.
All Answers
In your js function, you are using URL for redirecting to that Url but have not defined to which URL u want to redirect. Also, You are setting the parameter to urlEvent but for which object you are trying to set the parameters.
I have made some modification which is given below:
Let me know if this makes sense :)
Thanks,
Amit Singh
The problem is when I click it is working for the first time. but not for the second time.
You can fall back to normal javascript and open a new window on action click with:
This will likely trigger your browser popup blocker, but that can easily be disabled.
Greg Thomson
Thanks
pRAMODH.
Hi Pramodh Kumar,
I have a similar requirement, to navigate to a different component in a new Tab.
Here's a code snippet. Can you please provide me a work around
var evt = $A.get("e.force:navigateToComponent");
evt.setParams({
componentDef : "c:myComponent",
componentAttributes: { recordId : component.get("v.recordId") }
});
evt.fire();
Thanks in advance! :)