-
26 Feb 2012 10:41 AM #1
Store cannot be found.
Store cannot be found.
Hello,
I have a simple grouped list component linked to a json data store. In the Designer, I can see the data loaded into the list, but in the browser I get a blank screen and the javascript console says:
[WARN][Ext.dataview.List#applyStore] The specified Store cannot be found
Any help would be appreciated!
Thank you.
-
26 Feb 2012 11:14 AM #2
I found the problem. I'm not sure I understand correctly but this might be a bug in sencha. When a json value has a comma in it, sencha fails to load the store.
E.G.: "name":"Doe, John" would cause a the store not to load.
-
27 Feb 2012 9:50 AM #3
This should not be the case. We use the browser provided JSON parsing code.
Provide us a simple example and we can take a look into it.Aaron Conran
@aconran
Sencha Architect Development Team
-
11 Mar 2012 8:06 PM #4
Even i face the same problem of this store...that [Ext.dataview.List#applyStore] The specified Store cannot be found
-
12 Mar 2012 1:26 AM #5
This is my code...
Ext.define('Contact',{
extend:'Ext.data.Model',
config:
{
fields:
[
{name: "id", type: "string"},
{name: "text", type: "string"},
{name: "parent", type: "string"},
],
},
});
Ext.create(Ext.data.Store,{
config:
{
id:'ListStore',
model:'Contact',
sorters:'id',
grouper: function(record){
return record.get('parent');
},
data:
[
{ id: '1', text: 'General', parent: 'Dispatch',},//route:'Home/register'
{ id: '1', text: 'Speciality', parent: 'Dispatch'},
{ id: '1', text: 'Vehical', parent: 'Dispatch'},
{ id: '1', text: 'Crew', parent: 'Dispatch'},
{ id: '1', text: 'Referring/Recieving', parent: 'Dispatch'},
{ id: '1', text: 'Associated Patients', parent: 'Dispatch'},
{ id: '2', text: 'Patient/Relatives', parent: 'Patient Information'},
{ id: '2', text: 'Other Patient Info', parent: 'Patient Information'},
{ id: '2', text: 'PHMX/Meds/Allergies', parent: 'Patient Information'},
{ id: '2', text: 'Billing Information', parent: 'Patient Information'},
{ id: '3', text: 'CC,SC and HPI', parent: 'CC/HPI'},
{ id: '3', text: 'Cardio Arrest', parent: 'CC/HPI'},
{ id: '3', text: 'Vehicle Incident', parent: 'CC/HPI'},
],
},
});
Ext.define('app.view.ListView',{
extend:'Ext.dataview.List',
id:'todo-list',
xtype:'todolist',
config:
{
items:
[
{
xtype:'list',
store:'ListStore',
itemTpl:'{text}',
grouped:true,
indexBar:true,
},
],
},
});
This is my file in which i store data model n view....n i gt this error.....
[Ext.dataview.List#applyStore] The specified Store cannot be found
-
12 Mar 2012 9:28 AM #6
Ext JS's MVC package requires that storeId and userClassName be the same value.
Set them to the same value and this should be resolved.Aaron Conran
@aconran
Sencha Architect Development Team
-
12 Mar 2012 8:59 PM #7
i have written the code in sencha2...i didnt get u about what you are talkin...


Reply With Quote