Skip to main content
10-Marble
November 8, 2022
Solved

Creating Mashups Dynamically based on Mashup Template

  • November 8, 2022
  • 1 reply
  • 1167 views

Hi Community!

 

I would like to know if would be possible to create mashups from services using mashup template, exactly like we do to create things dynamically.

Just to better exemplify my use case, I would like to create a mashup for each thing created dynamically because on this mashup everything is equal besides the values on the collection widgets.

 

Thanks in advance!

Felipe Duarte

Best answer by nmilleson

@fbdsilva ,

 

If the mashup is visually the same except for values on a collection widget, I would consider creating one mashup with a parameter for your Thing.  Then use services in that mashup to grab the values for that particular Thing.  To view that mashup using a URL, you can do something like:

/Thingworx/Runtime/index.html?mashup=MyCoolMashup&MyThingName=MyCoolThing

 

where MyThingName is the name of the parameter on your mashup.

 

Hope that helps,

Nick 

1 reply

nmilleson17-PeridotAnswer
17-Peridot
November 8, 2022

@fbdsilva ,

 

If the mashup is visually the same except for values on a collection widget, I would consider creating one mashup with a parameter for your Thing.  Then use services in that mashup to grab the values for that particular Thing.  To view that mashup using a URL, you can do something like:

/Thingworx/Runtime/index.html?mashup=MyCoolMashup&MyThingName=MyCoolThing

 

where MyThingName is the name of the parameter on your mashup.

 

Hope that helps,

Nick