javascript save issue with deferred / promise approach I’m struggling to implement the deferred / promise approach as outlined here, here, and hereMy use case is to:1) Mass create rows with a different lookup value in each row2) Update / Refresh a second model3) Use a value from my second model as the lookup value in each row4) SAVE!I can get it to do steps 1-3 perfectly, but can’t get it to save my new rows.I’ve tried a bunch of different things…(e.g. chaining .then(), putting save action as next action in sequence, etc)…nothing so far…Any advice would be much appreciated.
var params = arguments[0];<br />var step = params&#46;step;<br />var $ = skuid&#46;$;<br />dfd = new $&#46;Deferred();<br /> &#47;&#47; Get Reference to Models to mass create newGoals from templateGoals var TemplateGoals = skuid&#46;$M('TemplateGoals'); var newGoals = skuid&#46;$M('NewGoals'); &#47;&#47; Get Reference to context model and filterable condition which will be used to query and store the Template G