cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters of one service to navigation widget?

Re: How to pass parameters of one service to navigation widget?

Hi Ankit Gupta​,

I am able to bind EntityNameChanged  to QueryPropertyHistory. However I am still unable to see the output. Just to let you know, QueryPropertyHistory is being ran on a Stream, where in data from all the things is written. Can you please tell me what wrong I have done here?


Thanks,

Azim

Re: How to pass parameters of one service to navigation widget?

Hi azim hawaldar​,

QueryPropertyHistory Service is called from the Thing not the Value Stream.

For example; Thing Thing1 has a Value Stream ValueStream1; QueryPropertyHistory service is ran from Thing1.


I hope it helps.

Re: How to pass parameters of one service to navigation widget?

Hello Ankit Gupta​,

What has to be done in this situation. My use case is there are N number of things and all things has to write data to common stream, so that using this stream data can be displayed on Mashup?

Thanks,
Azim

Re: How to pass parameters of one service to navigation widget?

Hi azim hawaldar​,

Does all N things have same Thing Template? If yes, you can use GetImplementingThings Service of the Thing Template to get list of all Things. Then add QuerypropertyHistory Service as Dynamic Service of Thing Template. Now based on the selection of ThingName corresponding data from QuerypropertyHistory Service.

It is also explained in the PTC University Training.

I hope it helps.

Re: How to pass parameters of one service to navigation widget?

Hi Ankit Gupta​,

I have done exactly the same. i.e. name of Selected Rows of GetImplementingThings Service is mapped to EntityName msh up paramter of navigation widget. This EntityName in navigation widget is mapped to EntityName of Dynamic service of a Stream(since data is fetched from Stream not the thing template).


When I invoke the service all values are displayed as NaN.


Thanks,

Azim

Re: How to pass parameters of one service to navigation widget?

azim hawaldar, Per my understanding It should be mapped to EntityName of Dynamic service of the ThingTemplate.

Data is stored in Value Stream but is Read from the Thing which is writing the data to the Value Stream.

If we try to run the QuerypropertyHistory Service on the Value Stream; we are trying to fetch data from the Value Stream assigned to our Value Stream.

Because ValueStream is also a type of thing and it can have it's own Value Stream.


I hope it helps.

Re: How to pass parameters of one service to navigation widget?

Hi Ankit,

I have as you said but am unable to get the data of a particular thing when  i select, returns empty table.