I'm building a sencha (sencha touch 2) app which it gets some json data from a proxy. I'm populating a store so I have a model (with some fields) and a view which it show gotten data.
I need to modify some data received by proxy with a json reader and before to be saved into a model I need to modify some of the model fields.
Let's say I have the fields (id, title, text), I'm receiving non parsed text and I need to transform url's into a rich text forman like http://whatever
Ok, so, Is there any method to be defined into the store class where it will be executed each time a model is filled up?
For example:
...
customText: function(data) {
return parseUrlsFromString(data);
}
...
I have, a view, a controller, a store and a model defining the expected behaviour.
Any comment will be appreciated!