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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Is there a way that when we add a record to a stream, we refresh a values of a mashup automatically?

aluna
7-Bedrock

Is there a way that when we add a record to a stream, we refresh a values of a mashup automatically?

Is there a way that when we add a record to a stream, we refresh a values of a mashup automatically?

1 REPLY 1

If it's a Stream ( not a ValueStream) you have a DataChange event that you can subscribe to and  for instance set a property on the ValueStream (increase a counter for instance) that you bind with TW 7.2 websockets feature to push it back to the mashup and refresh the mashup.

But it may not work as Streams ( and ValueStreams ) writes are Asynchronous, then you may receive the DataChange event and maybe the data it's not persisted, one thing that I don't really know if that DataChange event it's thrown when you modify the stream ( memory ) or the real write on the database it's done.

Best Luck,

Carles.

Announcements


Top Tags