-
20 Jan 2012 11:34 AM #1
Warning messages on Models
Warning messages on Models
http://visits.benint.net/visits/touch-model/index.html
fields is deprecated as a property directly on the Model prototype. Please put it inside the config object.
proxy is deprecated as a property directly on the Model prototype. Please put it inside the config object.
Url above is an example of it.
Currently I have stores without proxy using models.
These models are fairly simple with RestProxy and JsonReader and a few fields defines.
After the warning messages (notices?)
Then I get a fatal Uncaught TypeError!
- [COLOR=red !important]Uncaught TypeError: Cannot call method 'getId' of undefined[/COLOR]
- [COLOR=red !important]Ext.define.buildUrl[/COLOR]sencha-touch-all-debug.js:24787
- [COLOR=red !important]Ext.define.buildRequest[/COLOR]sencha-touch-all-debug.js:24269
- [COLOR=red !important]Ext.define.doRequest[/COLOR]sencha-touch-all-debug.js:24467
- [COLOR=red !important]Ext.define.read[/COLOR]sencha-touch-all-debug.js:24229
- [COLOR=red !important]Ext.define.load[/COLOR]sencha-touch-all-debug.js:35147
- [COLOR=red !important]Ext.define.updateAutoLoad[/COLOR]sencha-touch-all-debug.js:34562
- [COLOR=red !important]Ext.apply.generateSetter.setter[/COLOR]sencha-touch-all-debug.js:3214
- [COLOR=red !important]Base.implement.initConfig[/COLOR]sencha-touch-all-debug.js:2851
- [COLOR=red !important]Ext.define.constructor[/COLOR]sencha-touch-all-debug.js:34432
- [COLOR=red !important]Base.implement.callParent[/COLOR]sencha-touch-all-debug.js:2773
- [COLOR=red !important]Ext.define.constructor[/COLOR]VisitsList.js:22
- [COLOR=red !important]Base.implement.callParent[/COLOR]sencha-touch-all-debug.js:2773
- [COLOR=red !important]Ext.define.constructor[/COLOR]VisitsList.js:19
- [COLOR=red !important]Ext.apply.create.Class[/COLOR]sencha-touch-all-debug.js:3023
- [COLOR=red !important](anonymous function)[/COLOR]
- [COLOR=red !important]Ext.ClassManager.instantiate[/COLOR]sencha-touch-all-debug.js:3981
- [COLOR=red !important](anonymous function)[/COLOR]sencha-touch-all-debug.js:1992
- [COLOR=red !important]myApp[/COLOR]index.js:30
- [COLOR=red !important]Ext.apply.onDocumentReady[/COLOR]sencha-touch-all-debug.js:5850
- [COLOR=red !important]Ext.apply.onReady.fn[/COLOR]sencha-touch-all-debug.js:4957
- [COLOR=red !important]Ext.apply.triggerReady[/COLOR]sencha-touch-all-debug.js:4938
- [COLOR=red !important](anonymous function)[/COLOR]sencha-touch-all-debug.js:1985
- [COLOR=red !important]Ext.apply.require[/COLOR]sencha-touch-all-debug.js:4785
- [COLOR=red !important]Ext.apply.triggerReady[/COLOR]sencha-touch-all-debug.js:4932
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4507
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.refreshQueue[/COLOR]sencha-touch-all-debug.js:4539
- [COLOR=red !important]Ext.apply.onFileLoaded[/COLOR]sencha-touch-all-debug.js:4854
- [COLOR=red !important](anonymous function)[/COLOR]sencha-touch-all-debug.js:1985
- [COLOR=red !important]Ext.apply.injectScriptElement.onLoadFn[/COLOR]sencha-touch-all-debug.js:4554
- [COLOR=red !important]Uncaught TypeError: Cannot call method 'getId' of undefined[/COLOR]
-
30 Jan 2012 11:20 AM #2
Same thing here. Anyone have any clue whats going on with this?
-
30 Jan 2012 10:47 PM #3
The warnings are just grabbing those properties off of the prototype and putting them in the configuration. That should not be causing the getId failure.
Could you create a test case that illustrates the problem so that we can resolve it?
As a side note, the config issue will be resolved in a build in the near future.Aaron Conran
@aconran
Sencha Architect Development Team
-
31 Jan 2012 4:29 AM #4
http://visits.benint.net/visits/touc.../designer.html
I will work on a more simple example if/when I can.
-
31 Jan 2012 5:39 AM #5
-
1 Feb 2012 11:41 PM #6
This is the same issue we are seeing that crashes designer when you click load data. Looking into this on both levels. It is a framework exception just not sure why yet
Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
-
2 Feb 2012 3:33 AM #7
The trace an exception looks very much alike a bug in the ST2 PR4 framework, fixed in Beta 1.
http://www.sencha.com/forum/showthre...d-of-undefined
http://www.sencha.com/forum/showthre...)-PR4&p=721809Sven Tore Iversen
-
2 Feb 2012 7:46 AM #8
Thanks Sven for reporting this.
Artistan, this will be fixed soon when we upgrade Touch to Beta1.
-
9 Feb 2012 11:06 PM #9
This should be fixed as of build 276.
Aaron Conran
@aconran
Sencha Architect Development Team
Success! Looks like we've fixed this one. According to our records the fix was applied for
DSGNR-1307
in
Architect 2.0.



Reply With Quote