PDA

View Full Version : JsonStore not updating it's reocrds json properties



rdillon
28 Feb 2011, 2:59 PM
How do I update the json property of a JsonStore record? Ext JS provides methods to update the data property fields, but the json property fields are not getting updated as I would expect. I need to send the modified record(s) back to the server in json:

selectedRecords = grid.getSelectionModel().getSelections();

Ext.each(selectedRecords, function(record){
record.set('currentDetail.reviewStatusID', statusId);
record.commit();
someArray.push(record.data)
// someArray.push(record.json) //the 'json' is not updated though the 'data' is ...?
});