PDA

View Full Version : Update Record's Field



ChristopherRyan
7 Dec 2010, 7:57 AM
I'm attempting to update a field in a store with the following code:


handleData = function(data)
{

var updateRecord = store.findRecord('vid', venue.getAt(0).get('vid'));

updateRecord.set('fsq', data);
updateRecord.commit();
Ext.getBody().unmask();
}
The set() function works the first time around, but then crashes once it is called a second time. I've had a little bit of trouble trying to figure out how to update a record already in a store, so I may be going about this the wrong way.

Any help would be appreciated.

edspencer
10 Dec 2010, 6:28 PM
If you can post full details of how to reproduce the problem I'll happily look into it.