Mashup Builder > Data Services and Bindings
Data Services and Bindings
ThingWorx data services call data into a Mashup and then render the data using a visualization widget. To render any data in a mashup, you need to add one or more data services to the mashup. One data service can feed multiple visualization widgets, minimizing the number of data calls to the server. Most widgets are configurable so that only the columns of data from the data service that you wish to see in that widget are shown. For example, you can use the numeric returns from a stream in a chart, and the string columns from the stream in a grid, but only have one call to the server.
Within the Mashup Builder, there are three panels that can provide data:
Data
Session
User
There are different kinds of data services available on the ThingWorx platform. The most common data services are based on the model entities that you define for your solution. Each entity has a standard set of services (for example, stream entries all have a data service named QueryStreamEntries), in addition to custom service definitions that you have implemented in your model. There are also standard system objects (Resources) that have data services.
To add a data service to a mashup, open the Data panel, and then click Add Data. The Add Data dialog opens. You can select from any model entities you have defined, including users and groups. You can also select data services from system resources and logs. You can select more than one data services at a time, and they are grouped together when displayed in the Data panel.