Last active
May 17, 2019 04:05
-
-
Save enreeco/30f5c7c52dda0876c53c3826fd152529 to your computer and use it in GitHub Desktop.
Salesforce Ligthning QuickAction popup automatic close
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component implements="force:lightningQuickAction,force:hasRecordId"> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}" /> | |
Loading data, please wait. . . | |
</aura:component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
doInit : function(component, event, helper) { | |
window.location.href="/apex/backgroundPage?id="+component.get("v.recordId"); | |
setTimeout(function(){ | |
$A.get("e.force:closeQuickAction").fire(); | |
}, 1000); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment