You need to sign in to do that
Don't have an account?
Debabrata Bera
$A.get("e.force:closeQuickAction").fire(); - is not working
Here is my simple code -
if(a == component.get("v.recordId")) {
$A.get("e.force:closeQuickAction").fire();
window.open('*****');
I am getting redirected to my URL but the empty window is not getting closed automatically.
if(a == component.get("v.recordId")) {
$A.get("e.force:closeQuickAction").fire();
window.open('*****');
I am getting redirected to my URL but the empty window is not getting closed automatically.
it work only in lightning experience
I have added the button in lightning experience to test that.
Is this is action specific???
.cmp
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global">
<aura:attribute name="recordId" type="Id"/>
<aura:handler name="init" value="{!this}" action= "{!c.doInit}" />
</aura:component>
.js
({
doInit : function(component, event, helper) {
console.log('Record Id-'+component.get("v.recordId"));
var a = $A.get("$Label.c.********");
console.log('Custom level value- '+a);
if(a == component.get("v.recordId")) {
$A.get("e.force:closeQuickAction").fire();
window.open('https://************','_blank');
} else {
console.log('else condition');
$A.get("e.force:closeQuickAction").fire();
window.open('https://***************','_blank');
}
}
})
Please let me know if i missed out anything.