Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello everyone,
so I have multiple Things of the same Thing Template. Now I would like to assign a Home Mashup to each of these Things. The Mashup should be the same, but the values inside should correspondent to the thing.
Now I hoped there would be a simple way to simply create the Mashup once and assign it as a Home Mashup and somehow assign the Thing Name as a Parameter to the Mashup. Any Ideas how to achieve that?
I want this because I have a main mashup where a list of all my things is contained. I want to display the Home mashup of every Thing when I click on it in a contained Mashup. For that I use the Thing.getHomeMashup() service.
Any help is appreciated very much.
Best Regards,
Dominik
Solved! Go to Solution.
You can create a service with the ThingName as an input parameter and return necessary data through that.
Also ... it used to be possible to pick a Thing and still set it as Dynamic and do GetProperties that way.
You could also do GenericThing Template - i don't remember if it will only give the default values for GetProperties and not the added properties.
Else you could create a 'Base ThingTemplate' before creating the Unique Thing Templates and do it off the Base ThingTemplate
Since the Things are inheriting the same Template and they are using the same set of Mashup , you can simply design the page and assign Dynamic service from the Template, and when you change to any Thing under it, it will just grab the data from this entity.
Hello @zyuan1 ,
thank you for your reply. I forgot to mention, that I have multiple things in my list which inherit from different Thing Templates. But some of these things share a Template.
I know that you can bind the Thing Name to the dynamic Thing Template but in this case this would not work, because I would need to decide to which Template the Name should be bind during runtime.
Regards,
Dominik
You can create a service with the ThingName as an input parameter and return necessary data through that.
Also ... it used to be possible to pick a Thing and still set it as Dynamic and do GetProperties that way.
You could also do GenericThing Template - i don't remember if it will only give the default values for GetProperties and not the added properties.
Else you could create a 'Base ThingTemplate' before creating the Unique Thing Templates and do it off the Base ThingTemplate