-
20 Apr 2012 7:12 AM #1
architect 2 - arraystore, data field looses quotes when generating code
architect 2 - arraystore, data field looses quotes when generating code
Architect 2
Extjs 4
when I set the data field of the arraystore like it follows
[{'name': 'paris', 'value': 'PARIS'}]
or
[{"name": "paris", "value": 'PARIS'}]
when the class is generated the name attribute doesn't have the quotes.
Is it a bug or am I doing something wrong?
Code:Ext.define('MyApp.store.MyArrayStore', { extend: 'Ext.data.Store', constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'MyArrayStore', data: [ { name: 'paris', 'value': 'PARIS' } ], fields: [ { name: 'name' }, { name: 'value' } ] }, cfg)]); } });
thank you
-
24 Apr 2012 8:05 PM #2
Architect generate wrong extend Ext.data.ArrayStore
Architect generate wrong extend Ext.data.ArrayStore
Ya, I think this is a bug of Sencha Architect. It generates extend: 'Ext.data.Store' instead of extend: 'Ext.data.ArrayStore'
Please fix it
Thanks,
-
25 Apr 2012 8:31 PM #3
Happens with other types of Store also
Happens with other types of Store also
This was working just like 3 days ago. Would be great to get this resolved asap.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote