I am trying to modify some code to retrieve the "original" value of a record. I'm sure there is another way to do this, but I really would like to know how to retrieve the raw value of an array. I have the following code:
When I look at the console, and "expand" the object, I see data and raw. After doing some research, it seems raw will always contain the value of index prior to converting to the new value. I need that raw value. How do I retrieve that value? I tried rec.raw.FIELD and that didn't work. get() will retrieve the value from data. getRaw is not a valid method. How do I retrieve that value? It might be important to add that this array is coming in from a store that is used for a grid.
Code:
processRecords: function(button, event, eOpts) { var me = this, records = me.getDetailPanel().getStore().getRange(); Ext.Array.each(records, function(rec, index) { if (rec.dirty === true) { console.log(rec);
Comment