According to this, skuid.model.updateData() has been deprecated.
Works in version 11.1.7 without issue.
The proposed workaround is to use skuid.model.Model.update(), but this isn’t great as it’s for just the one model at a time. I have this code that would be faster since it’s querying multiple models at one time. There’s also good reason to query at the same. Take cloning as an example. Problematic without updateData() when the models are set to clone always.
var params = argumentsr0],<br> FirstModel = skuid.$M('FirstModel'), SecondModel = skuid.$M('SecondModel'), Entities = skuid.$M('Entities'), models = oFirstModel,SecondModel], $ = skuid.$; var dfd = $.Deferred(); function updateModels(){ $.when(skuid.model.updateData(models)) .done(function(){ if (SecondModel.data.length){ Entities.adoptRows(SecondModel.getRows()); updateModels(); } else { dfd.resolve(); } dfd.resolve(); }) .fail(function(){ dfd.reject(); }); } updateModels(); return dfd.promise();
Did I miss something?