Skip to main content

Is there any way in skuid to listen for changes in any model that is based on a particular sObject?

I suppose I can create an array of models on a particular object with something like this…


var modelsOnMy_sObject=t];<br>skuid.$.each(skuid.model.map(), function(){<br>if (this.objectName == 'My_sObject_Name') {modelsOnMy_sObject.push(this);}<br>});


Would that be a recommended method, or is there something better?

And then subscribe the the models.save event and iterate through the models to see if any of them are in the modelsOnMy_sObejct array?

This is what I’d recommend.


I agree, Matt, I think you’ve got the right approach.


Thanks, guys!