I would like a button to set a variable.
See attached example that I can not get to work.
Seems all ok to me, you just need to define the value you want to assign in the action property dialog.
When I switch the button on, I would like it to display 1 in the text box and when I switch it off to display 2
Try using this as expression to set the value:
and this as Text for your button in general tab:
have a look at:
Maybe this helps!
Retrieving data ...