Dynamic Button creation and event binding

Answer in the other thread:

image

You’re mixing things up.

  • either use native buttons with built in dispatchers and construct them
  • or use user widgets with custom dispatchers and create them. Check the other thread for details

The difference is subtle, unfortunately:

ca944e05b827681a9d5a0ed6798166743c3844a8

Use the bottom node if you want a user widget with a custom dispatcher that outputs data. I believe that’s what you’re after. It will work for both - native onClick (after you peel the button) and your own Event Dispatcher.