View Full Version : Adding record to store and field.mapping

19 Mar 2012, 3:35 AM
Hi all,

I have a question concerning the field.mapping config and adding records to a store. I have a field.mapping configuration on a field in my model like this:

mapping: 'someProperty.displayString',

After loading data sent by the server with a json reader, the associated grid loads the store with the given model and the reader calls the extractor functions properly. The result is looking fine - instead of [Object object] i see the value of the property 'displayString' in the grid.
Then i want to add a new record to the grid, so i make: new Model(); set the new data with some form values and then add this record to the grid's store (calling add). When I'm doing this, the result is, that the new record row in the grid shows the unexpected and clearly unwanted [Object object] value. While debugging this, I also noticed that no extract Functions of the reader had been called.

Is this a bug or a feature? I'm currently using Ext 4.0.7.