You need to sign in to do that
Don't have an account?
Nandu
My Application event is not firing
event :recordDetailpage
Helper Class
component 2
<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);
In component2, try the handler without the name attribute
<aura:handler event="c:recordDetailpage" action="{!c.Controller_RecDetail}"/>
regards
Sampath
All Answers
In component2, try the handler without the name attribute
<aura:handler event="c:recordDetailpage" action="{!c.Controller_RecDetail}"/>
regards
Sampath
it's working