TransWikia.com

LCC Quick Action Button No Longer Redirecting

Salesforce Asked by AusNC on December 17, 2020

I have a Quick Action button on an object record page that redirects the user to a Visualforce page when clicked.
It was auto-generated from a Javascript button by this Salesforce tool: https://help.salesforce.com/articleView?id=lcc_javascript_buttons_overview.htm&type=5
It needed minor tweaking before working, but once we had it functional it has worked flawlessly until now.

It has worked for nearly a year, but recently stopped.
The intended functionality is: when clicked, open a text alert box with a spinner until the page redirects.
The current behavior is: when clicked, open a text alert box with a spinner but does not redirect. It looks like execute() is never being called.

Code:
my_button.cmp

<aura:component extends="c:LCC_GenericLightningComponent" >
    <aura:handler event="c:LCC_GenericApplicationEvent" action="{!c.execute}"/>
    <aura:set attribute="partially" value="false"></aura:set>
    <aura:attribute name="showAlert" type="Boolean" default="false"/>
    <aura:attribute name="alertText" type="String"/>
    <aura:set attribute="isAdditionalObject" value="false"></aura:set>

    <div>
        <div class="slds-scrollable slds-p-around_medium slds-text-heading_small" id="modal-content-id-1">
            <aura:if isTrue="{!v.showAlert}">
                <p class="slds-hyphenate">{!v.alertText}</p>
                <aura:set attribute="else">
                    <div style="height: 6.75rem;">
                        <div role="status" class="slds-spinner slds-spinner_large slds-spinner_brand">
                            <span class="slds-assistive-text">Loading</span>
                            <div class="slds-spinner__dot-a"></div>
                            <div class="slds-spinner__dot-b"></div>
                        </div>
                    </div>
                </aura:set>
            </aura:if>
            <br/>
        </div>
        <footer class="slds-modal__footer">
            <lightning:button class="slds-button_brand" onclick="{!c.accept}" label="Accept"/>
        </footer>
    </div>
</aura:component>

my_button_Controller.js

({
    execute : function(component, event, helper) {
            helper.gotoURL(component, '/apex/myPage?show=myComp&objId='+component.get('v.sObjectInfo.Id')+'&selectedReport='+component.get('v.sObjectInfo.Report__c'));   
    },
    
    accept : function(component, event, helper) {
        $A.get("e.force:closeQuickAction").fire();
    }
})

my_button_Helper.js

({
    helperMethod : function() {
        
    }
})

I am not familiar with LCC design, can someone please point me in the right direction to fixing this?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP