cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Use Radio Button to set value/state of RemoteThing Property

ajohnson-2
1-Visitor

Use Radio Button to set value/state of RemoteThing Property

Have successfully configured State Definition of True/False, and tied to Radio Button.

Tested Radio Button Selected Value to ValueDisplay in Mashup.

How do we bind the selected value to defined RemoteThing Property (Boolean Type)?

Thank-you in advance!

2 REPLIES 2
Aanjan
12-Amethyst
(To:ajohnson-2)

Aaron, since you want to change the property on a Thing, you would have to bind the button output to 'set' service on that Thing. Try binding Radio Button's 'SelectedValue' to the 'SetProperties' service on your Thing. Once you add 'SetProperties', you can expand that and bind it directly to your specific Boolean property. Also, do remember to bind the 'SelectionChanged' event on the Radio Button to the 'SetProperties' service as that will trigger the actual property changes.

Thank-you Aanjan, this was helpful.

For others reference;

In the mashup composer area, select the Data tab on the rights hand side, add "yourThing".

Then select yourThing, and add "Set Properties" Service

1. Drag the Radio Button widget to Mashup

2. Mouse over the widget upper left corner arrow, click on the "Configure Bindings"

3. Goto Properties "Selected Value", click on "Binding Targets", and choose the local or remote target

4. On the "Add Data Binding" pop-up, "Data" List, navigate to /yourThing/Set Properties and select "yourProperty"

5. Return to "Configure Bindings" area, goto Events "SelectedChanged", click on "Triggered Services"

6. On the "Add Services" pop-up, "Data Services" List, navigate to /yourThing and select "Set Properties"

Announcements


Top Tags