Skip to main content
1-Visitor
April 10, 2018
Solved

How to use Mashup parameters to query QueryImplementingThingsWithData?

  • April 10, 2018
  • 3 replies
  • 3494 views

My use case is to show different sets of data on same mashup.

 

I have two mashups. Let's say, m1 and m2. Now I am loading m2(passing mashup parameter value) using  navigator widgets in m1.

I want m2's data to be loaded dynamically based on mashup parameter passed. I am using QueryImplementingThingsWithData in m2 for sending query also. How can I query QueryImplementingThingsWithData using mashup parameter?

Best answer by PaiChung

With the Mashup selected, you should be able to see the mashup parameter in the mashup properties or in the dropdown in the mashup space and then see the mashup parameter, click drag and drop that on Entity for Dynamic_WhateverTemplate which has GetImplementingThings.

So use ThingTemplate / With Dynamic checked when adding the service.

Also trigger the running of the service using the Mashup Parameter Changed event

3 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
April 10, 2018

With the Mashup selected, you should be able to see the mashup parameter in the mashup properties or in the dropdown in the mashup space and then see the mashup parameter, click drag and drop that on Entity for Dynamic_WhateverTemplate which has GetImplementingThings.

So use ThingTemplate / With Dynamic checked when adding the service.

Also trigger the running of the service using the Mashup Parameter Changed event

KESHAV961-VisitorAuthor
1-Visitor
April 11, 2018

  Hi @PaiChung,

 

Thanks for your message. I got it till drag and drop the mashup parameter. Now I am not able to find 'GetImplementedThings' if I check 'dynamic' checkbox. I have attached an image also for the reference. Can you please find what wrong am I doing? Or is there any other service that I can use to query with ThingName and get property values in return?

 

Please help with this.

KESHAV961-VisitorAuthor
1-Visitor
April 11, 2018

I got my answer. GetPropertyValue works for me.

 

If you have any alternative ideas, please share. Thanks for the support.