function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NanduNandu 

My Application event is not firing

event :recordDetailpage
<aura:event type="APPLICATION" description="Event template">
    <aura:attribute name="BoatRecord_Id" type="String"/>
</aura:event>
component 1
<aura:registerEvent name="RecDetail_Event" type="c:recordDetailpage"/>


Helper Class
imgclick_helper:function(component,event,recId){
        var appEvent = $A.get("e.c:recordDetailpage");
        alert('recId from boat search..'+recId);
        appEvent.setParams({
            "BoatRecord_Id" : recId});
        appEvent.fire();
}

component 2
 
<aura:handler name="RecDetail_Event" event="c:recordDetailpage" action="{!c.Controller_RecDetail}"/>
controller_RecDetail
var selecteRecodID=event.getParam("BoatRecord_Id");
        component.set("v.selectedRec_id", selecteRecodID);


Best Answer chosen by Nandu
Sampath SuranjiSampath Suranji
Hi,

In component2, try the handler without the name attribute
<aura:handler  event="c:recordDetailpage" action="{!c.Controller_RecDetail}"/>

regards
Sampath

All Answers

Sampath SuranjiSampath Suranji
Hi,

In component2, try the handler without the name attribute
<aura:handler  event="c:recordDetailpage" action="{!c.Controller_RecDetail}"/>

regards
Sampath
This was selected as the best answer
NanduNandu
Thank you @Sampath Suranji,
it's working