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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

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

aluna
1-Newbie

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.

Top Tags