Threaded View
-
30 Nov 2012 9:42 AM #1
[2.1]Custom proxy not visible to sencha cmd
[2.1]Custom proxy not visible to sencha cmd
Platform:
windows 7,Sencha Cmd v3.0.0.250, ipod(software v6.0.1)
I've following custom proxy class:
and store,which using it:Code:Ext.define('app.tools.Test1', { extend: 'Ext.data.proxy.Rest', alias: 'proxy.test1', config: { reader: { type: 'json' }, writer: { type: 'json', writeAllFields: false, nameProperty: 'mapping' }, listeners: { exception: function (s, response) { ... } } }, ... });
when I test application in chrome browser-all work as expected, 'test1' proxy is found and properly handled.Code:Ext.define('app.store.SomeStore', { extend: 'Ext.data.Store', requires: ['app.tools.Test1'], config: { model: 'app.test.SomeModel' ,proxy: { type: 'test1', url: 'some_url', reader: { rootProperty:'results' } } , autoLoad: true } });
But,if I trying to do "sencha app build native" to create ios application,I get error:
that could be "sencha cmd" problem,but I'm not sure.Code:[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\temp\test\app\store\SomeStore.js => 16 : 8 )
Workaround,define:
for SomeStore.Code:constructor: function (config) { config.proxy = { type: 'test1', url: 'some_url', reader: { rootProperty:'results' } }; this.callParent(arguments); }
Thanks.
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote