Thanks Tommy, that does make sense. I found the documentation for the convert method (http://docs.sencha.com/touch/2-0/#!/...ld-cfg-convert) but the code example seems to not be in the full MVC format, and I don't know how to address the convert method if I place it within the User model. For example, my model might look like
PHP Code:
Ext.define('MyApp.model.User', {
extend: 'Ext.data.Model',
config: {
fields: [
{name: 'firstName', type: 'string'},
{name: 'lastName', type: 'string'},
{name: 'fullName', type: 'string', convert: 'fullNameConv' }
],
proxy: {...}
},
fullNameConv: function (v, record) {
return record.firstName + ' ' + record.lastName;
}
});
What would be the proper way to address that fullNameConv method? (As written doesn't work, of course).