1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    1
    chibrolzy is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    1
    chibrolzy is on a distinguished road

      0  

    Default


    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.

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,204
    Vote Rating
    120
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
    gauzrane is on a distinguished road

      0  

    Default


    Even i face the same problem of this store...that [Ext.dataview.List#applyStore] The specified Store cannot be found

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
    gauzrane is on a distinguished road

      0  

    Default


    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

  6. #6
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,204
    Vote Rating
    120
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
    gauzrane is on a distinguished road

      0  

    Default


    i have written the code in sencha2...i didnt get u about what you are talkin...

Thread Participants: 2