Skip to main content
Dec 24, 2018 8:26 AM UTC
Solved

How to use my own QueryImplementingThingsWithData service in a mashup ?

Hello

I would like to create a custom service with some filters for QueryImplementingThingsWithData in order to be able to use in an advanced  grid and to keep the "Query" parameter available for the grid functions such as search, filter, sort, etc ... functions

 

The issue is that my thing template is made of several Thing shapes so I cannot select it for infotable  output of my custom service, so I cannot bind in mashups.

 

Is there another way to filter this  QueryImplementingThingsWithData  and to keep the "query" parameter free for binding with advanced gris filter ?

 

How is it done in the mashup Data as the QueryImplementingThingsWithData   is returning all properties from different shapes of my Thing template  when used directly from the Composer ?

 

Thnaks

 

 

Jan 19, 2019 8:09 PM UTC

You can create your own DataShape with all the desired fields, and set as output of your custom Wrapper Services as pointed out by Polina.

6 replies

Dec 28, 2018 2:11 PM UTC

Perhaps I'm not understanding the issue correctly, but you could create a custom service that wraps QueryImplementingThingsWithData, doing all the necessary logic and first-hand filtering in that service. You'd set your output to infotable.

pjolyAuthor
Dec 31, 2018 11:29 AM UTC

The issue is that the thing template is built of several data shapes.

So the infotable returned by  my own service using QueryImplementingThingsWithData cannot be used in mashups.

The generic "QueryImplementingThingsWithData"  is returning all properties from different data shapes making the thing template, but I did not find how to do it with my customized service.