You need to sign in to do that
Don't have an account?
d.tejdeep@nicomatic.in
Event.getParam value Duplicating multiple times?
Parent Action JS :
child component :
Child action :
If we remove
Event.getparam is duplicating multiple time if we remove the event.getparam
// set call back action.setCallback(this, function(response) { var state = response.getState(); if (state === "SUCCESS") { var qli=response.getReturnValue(); var key=0; for (key in qli){ var qliindexno=qli[key].Id; var qlisaved=qli[key].QliRowNum__c; var appEvent = $A.get("e.c:ClearValues"); appEvent.setParams({ "param1" : qliindexno}); console.log('NOuyd123'); appEvent.fire(); console.log('NOuyd'); key++; } } });
child component :
<aura:handler event="c:ClearValues" action="{!c.saveBatchDetails}"/>
Child action :
saveBatchDetails: function(component,event,helper){ console.log("calling updateRaces in ListRaceController"); var param1 = event.getParam('param1'); console.log(param1);
If we remove
var param1 = event.getParam('param1'); console.log(param1);
Event.getparam is duplicating multiple time if we remove the event.getparam