Not successfully updating multiple records with extjs (500-error) -


the application developed extjs 4 , ext scheduler. want select number of records , update these, records updated many update-request posted (i use json).

for example want edit 2 records, 2 post requests update posted, first gets status 200 , other 1 gets status 500 (internal server error). first post smaller in size last 1 (1.9 kb versus 9.2 kb in case)

onsaveclick: function () { var selectedevents = grids.scheduler.geteventselectionmodel().getselection();               stores.eventstore.suspendautosync();             (var = 0; < selectedevents.length; i++) {                 selectedevents[i].set({                     customerid: variables.customerfield.getvalue(),                     customername: variables.customerfield.getrawvalue(),                     notes: variables.hidefieldsfield.getcomponent('notes').getvalue(),                     scope: variables.scopefield.getvalue().scope,                     preliminary: variables.preliminarybox.getvalue(),                     workweekends: variables.weekendsfield.getvalue()                 });              stores.eventstore.resumeautosync();             stores.eventstore.sync(); }, 

looks solved adding selectedevents[i].commit();


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -