Skip to main content
1-Visitor
August 8, 2016
Solved

Setproperty from mashup checkbox

  • August 8, 2016
  • 1 reply
  • 6486 views

Hello,

I am trying to set the property of a thing using a checkbox on a mashup.

1. I have put this widget on the mashup, making sure I select the "Dynamic" checkbox. I have also configured the data bindings so that the checkbox "state" is linked to SetProperties."machineON" <bool> on my thing.

2. I have tried doing the above and also โ€‹using the event "Changed" on the checkbox to trigger the "SetProperties" service.


Neither of these seem to work, so when I change the sate of the checkbox and go to its property page, the thing properties do not seem to change.

Best answer by Aanjan

Sorry, now I see the DynamicThings name there. Can you try adding the same MyHouse Thing again with the SetProperties and the widget bindings exactly the same way you have it now but without selecting dynamic when you're adding the SetProperties service?

1 reply

5-Regular Member
August 8, 2016

Kaloyan, you would definitely need to bind the 'Changed' event to the 'SetProperties' service to trigger it. Are you setting a Boolean value for the property as well?

kpashov1-VisitorAuthor
1-Visitor
August 9, 2016

Hello Aanjan,

I have now bound the "Changed" event to the DynamicThings_Thing.SetProperties and the State to the DynamicThings_Thing.SetProperties.MachineON

1-Visitor
October 19, 2016

I have the exactly the same issue but I need to use Dynamic since the thing is selected dynamically from a different mashup and the entity is passed as a mashup parameter. GetProperties and all other methods are working as expected, but the State is not propagated to related boolean property even if I have bound the Changed event to SetProperties exactly in the same way as Kaloyan did. I have the same setup, except that I need to use the Dynamic behavior and the EntityName is bound to the mashup parameter which is set correctly. Is this a known issue?