Skip to main content
added 2 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

Your code is not wiring up the someEventHandler action method during the create of someComponent.

The empty {} in the call to $A.createComponent()$A.createComponent() needs:

{
   someEvent: component.getReference("c.someEventHandler")
}

See https://developer.salesforce.com/docs/atlas.en-us.198.0.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm for an example of how to do that.

Your code is not wiring up the someEventHandler action method during the create of someComponent.

The empty {} in the call to $A.createComponent() needs:

{
   someEvent: component.getReference("c.someEventHandler")
}

See https://developer.salesforce.com/docs/atlas.en-us.198.0.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm for an example of how to do that.

Your code is not wiring up the someEventHandler action method during the create of someComponent.

The empty {} in the call to $A.createComponent() needs:

{
   someEvent: component.getReference("c.someEventHandler")
}

See https://developer.salesforce.com/docs/atlas.en-us.198.0.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm for an example of how to do that.

Source Link
Doug Chasman
  • 10.1k
  • 24
  • 36

Your code is not wiring up the someEventHandler action method during the create of someComponent.

The empty {} in the call to $A.createComponent() needs:

{
   someEvent: component.getReference("c.someEventHandler")
}

See https://developer.salesforce.com/docs/atlas.en-us.198.0.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm for an example of how to do that.