Skip to main content
1-Visitor
March 18, 2019
Question

setting a property value upon clicking of buttons

  • March 18, 2019
  • 7 replies
  • 2843 views

I have around 14 buttons with each button having different values. Upon clicking on any of the 14 buttons, i wish to set a property value. Normally, here i'm having to call 14 setProperty services of a thing. But, i wish to simplify the process. Any suggestions??

7 replies

5-Regular Member
March 18, 2019

So you just have 1 property but you have 14 values (also buttons) for option, when you press 1 button, the property will be assigned the value it represents?

 

You could use Radio Button or something like a 14 rows List widget, and assign the selected value to the property

muzzammil1-VisitorAuthor
1-Visitor
March 27, 2019

@zyuan1 Can you elaborate your sayings??

5-Regular Member
March 27, 2019

You can drag a Radio Button widget (in latest version it's called Button Bar widget), they are quite self-explanatory.