Listen to changes in a records by other users?

This code from Cody Taylor makes it so easy! Just add this code as an inline snippet and change the model name from MyModel to the name of your model. Then create an event triggered action sequence of type Skuid Page: Rendered that runs the snippet.


// To be used as an inline snippet

var model = skuid.$M(‘MyModel’),

refreshInSeconds = 5;

if (model) setInterval(function () {

model.updateData();}, refreshInSeconds * 1000);


https://github.com/skuid/skuid-labs/blob/master/experiments/snippets/timedModelRefresh/standalone.js