Skip to main content
1-Visitor
December 24, 2018
Solved

How to use my own QueryImplementingThingsWithData service in a mashup ?

  • December 24, 2018
  • 6 replies
  • 3538 views

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

 

 

Best answer by CarlesColl

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

20-Turquoise
December 28, 2018

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.

pjoly1-VisitorAuthor
1-Visitor
December 31, 2018

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.