Passing which button was clicked to a service
Hello,
i want to build a simple calculator. For this I would want to create 10 buttons for each digit and 6 buttons for plus, minus, multiply, divide, delete, equal.
Then a computation services that takes the label of the buttons pressed as input.
But here I am already stuck. I haven't found a way to pass a value for a button to a service. Logic; if button "4" was clicked, input parameter "digit" should be "4".
I have already tried setting a contextID and working with event routers but the problem is that the context ID should only be passed when the button is clicked, but it will always pass.
I would appreciate any help!
Thank you.

