View Full Version : Inline Data does not load into store

31 Oct 2012, 11:44 AM
The inline data in my store does not get loaded after I instantiate the store. See code below:

Ext.define('test', {
extend: 'Ext.data.Model',
config: {
fields: [
{ name: 'category'}

Ext.define('test_store', {
extend: 'Ext.data.Store',
id: 'boooooooo',

config: {
model: 'test'

data : [
{category: 'Spencer'},
{category: 'Maintz'},
{category: 'Conran'},
{category: 'Avins'}

var cat_btn_store = Ext.create('test_store');


console.log(cat_btn_store );

Please help, I've been fighting with this for some time now ... and I can't find a solution. I don't get any errors. I use Touch 2.0.1.

Thank you for your time and help.

31 Oct 2012, 12:04 PM
I got it figured out ... the data has to be inside the config, where the model is. The documentation does not mention this anywhere. Please update the documentation accordingly. Thank you.