Here’s my code.
var model = arguments[0].model, row = arguments[0].row;<br>var mA = skuid.$M('AllAppointments');<br>mA.createRow({additionalConditions:[<br> {field: 'Start__c', value: row.Start__c},<br> {field: 'End__c', value: row.End__c},<br> {field: 'Room__c', value: row.Room__c}<br> ]});<br> <br>model.deleteRow(row);<br>mA.save();<br>mA.setCondition(mA.getConditionByName('ThisOne'), mA.getFirstRow().Id);<br>mA.updateData();
I’m getting the error, ‘uncaught model’ on the AllAppoitments model. It looks like the save doesn’t complete before the update is attempted. How do I handle that properly?
Thanks!
