3 réponses
Solution :-Create a global action and call below lighting component.Lighting Component<aura:component controller="ProductInUseCntrl2" Implements="flexipage:availableForAllPageTypes,force:lightningQuickAction,force:hasRecordId" access="global" > <!--<lightning:button label="Open in new Window" onclick="{!c.openActionWindow}"/>--> <aura:handler name="init" value="{!this}" action="{!c.openActionWindow}"/></aura:component>Java script controller({ openActionWindow : function(component, event, helper) { // var accId=component.get("v.recordId"); window.open( "/apex/vfpageName?id=" + component.get("v.recordId")); //window.close(); $A.get("e.force:closeQuickAction").fire(); }})The only problem with this is unable to close the global action window can anyone, please correct me my code to close quick action window.