Code:
Ext.define('MyModel',
{
extends: 'Ext.data.Model',
...
...
constructor: function()
{
this.set('field3', this.get('field1') + this.get('field2'));
}
});
This is a code snippet of the model, which used to work for me in 4.0.x. But this no longer works in 4.1.x. That is now the "this.get.<>" returns undefined. I need to access the fields from the raw response. i.e "this.raw.<>". Here the requirement is like i need to display a complex field, by building it from simple fields returned from server side. Am i missing something or it is meant this way in 4.1.x.
Moreover if anyone can provides link(s) to migrate code from 4.0.x to 4.1.x.
Regards,
Nagesh