Skip to main content
1-Visitor
March 31, 2017
Solved

Bind widget to properties dynamically

  • March 31, 2017
  • 1 reply
  • 4686 views

I have THINGs that will be created runtime by the user and these THINGs have some fixed properties and some others that will be created dynamically; the only thing those properties have in common is they are all NUMBER.

Now, I have a gadget with a widget inside (let's say a LED widget) which should be connected by one of those dynamics properties.

I cannot do it by composer since I don't know the properties in advance. My question is:

is there a way to bind properties to a widget by service?

So that I could make a gadget with a dropdown list and the value displaied changes according to what is selected by the list.

Thanks

Best answer by CarlesColl

Also you can create a Inner Mashup which receives as parameter the Thing Name and the Property Name and acts accordingly.

I have the same use case you say and well tougth it's not a problem at all. Well at the end for me it's everything Dynamic, then almost never I bind to specific properties...

1 reply

1-Visitor
March 31, 2017

Why don't you list Thing's properties on a DropDown List?

1-Visitor
March 31, 2017

Also you can create a Inner Mashup which receives as parameter the Thing Name and the Property Name and acts accordingly.

I have the same use case you say and well tougth it's not a problem at all. Well at the end for me it's everything Dynamic, then almost never I bind to specific properties...

fmanniti1-VisitorAuthor
1-Visitor
March 31, 2017

Thanks

It's what I needed