PDA

View Full Version : Field.convert error in Ext.JS Ver 4.1.0



sarabjeetd
7 May 2012, 9:32 AM
I switched to using Ext JS 4.1.0 Release Date: April 20, 2012.
I am getting an error:

Uncaught TypeError: Object #<Object> has no method 'convert'

Ext.define.constructorextjs/src/data/Field.js?_dc=1336411152765:129 (http://localhost:8080/lwdiag/extjs/src/data/Field.js?_dc=1336411152765)
constructor



Anybody has seen this type of error in this version?

The app runs fine in older version : Version Number: 4.1.0 Beta 2a


-Sarab

scottmartin
7 May 2012, 12:54 PM
Can you provide more detail on when/where this is happening?

Regards,
Scott.

sarabjeetd
7 May 2012, 1:37 PM
We have a json store which returns a string out of data that comes back from the server.
Ext.define('DiagApp.model.ProbeMetricsData', {
extend: 'DiagApp.model.Entity',
getKey: function(){
return this.get('path')[2].displayName;
}
});

/**
*
*/
Ext.define('DiagApp.model.Entity', {
extend: 'Ext.data.Model',
fields: ['path', 'metrics']


});

sarabjeetd
8 May 2012, 2:51 PM
I found that we are not using this store and so I removed it. After removing this store, I ran into another problem where we have a json store which never finishes loading. The store callback that is registered does not get called.
This store works as expected on previous version of ExtJS.

I will post a small runnable example to demonstrate the problem.