Hey
Yes I use two different stores..
Ext.create('store1', {storeId:'store1'});
Ext.create('store2', {storeId:'store2'});
is the code .. and console throws 2 different stores out ..
but I found out what was the problem ...
old code:
PHP Code:
Ext.require('model.NamedEntity');
Ext.define('store.NamedEntity', {
extend : 'Ext.data.Store',
model : 'model.NamedEntity',
autoLoad : false,
pageSize : 50,
proxy : {
type : 'ajax',
url : FORM_SEARCH_ENTITIES_PATH,
extraParams : {
language : Dict.getDefaultLanguage()
},
reader : {
type : 'json',
root : 'data',
totalProperty : 'total'
}
}
});
new code :
PHP Code:
Ext.require('model.NamedEntity');
Ext.define('store.NamedEntity', {
extend : 'Ext.data.Store',
constructor : function(theConfig) {
Ext.apply(this, {
model : 'model.NamedEntity',
autoLoad : false,
pageSize : 50,
proxy : {
type : 'ajax',
url : FORM_SEARCH_ENTITIES_PATH,
extraParams : {
language : Dict.getDefaultLanguage()
},
reader : {
type : 'json',
root : 'data',
totalProperty : 'total'
}
}
});
this.initConfig(theConfig);
this.callParent(arguments);
}
});
they shared properties on create !!!
Regards
Armando