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.
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.