I have parent component where I create child components dynamically with $A.createCmponent:

                'c:' + setting.Child_Component__c,
                function(newComponent, status, errorMessage) {
                    if (status === "SUCCESS") {
                        component.set('v.childComponent', newComponent);

                        let appEvent = $A.get("e.c:appEvent");
                        appEvent.setParams({ "myParam" : myValue });
                    } else {
                        console.log('Error: ' + errorMessage);

And I'm firing an event when status is success. I'm trying to handle this event in dynamically created component but it doesn't work. What I'm doing wrong? Event is Application. And handled by another not dynamically created components

  • Please check if any of the solutions posted over this thread helps. Jun 15, 2021 at 13:39
  • @ShivankurNaikwade I saw this, my situation is opposite to that Jun 15, 2021 at 14:00


You must log in to answer this question.

Browse other questions tagged .