List - “[WARN][Ext.dataview.List#applyStore] The specified Store cannot be found

REQUIRED INFORMATION: -
Sencha Touch version tested:

Sencha Touch 2.0 Final

Browser versions tested against:

Chrome 11 (Windows 7)

Description:
Problem #: Ext.list – I have 2 lists :

1. The 1st one is displayed inside a panel along with the segmented Button and a toolbar with two buttons.

2. And 2nd on to an overlay, which invokes on tap of a button ‘Navigation’. This list consists of the same component as the point #1.3. There are 2 warnings for each list :- “[WARN][Ext.dataview.List#applyStore] The specified Store cannot be found”“[WARN][Ext.dataview.List#applyStore] The specified Store cannot be found”

I ran into this same warning message. Digging through the source, I found that the StoreManager was throwing that error, since it could not locate the store in its list of registered stores. The way to register a store in the StoreManager is to add the storeId config to the store definition.

When I added the storeId config to the store, and used that to reference the datastore in my nestedlist, the warning went away.

I've reviewed you code and found several issues you'll need to address:

1) You've defined your todolist with an id. You do not want to do this as this means your will not be able to create more than one todolist. The proper way to use an id is to set it as a configuration like follows:

Code:

{
xtype: 'todolist',
id: 'todoList-1'
}

then later:

Code:

{
xtype: 'todolist',
id: 'todolist-2'
}

We see this mistake quite a bit, and it's what's causing you to see the warning "Registering a component with a id (`todo-list`) which has already been used. Please ensure the existing component has been destroyed `Ext.Component#destroy()`"

2) I'm assuming you want to share the same Store between the two todolists. That's fine, but you've never actually created the shared Store for them to use. In addition, you'll want to use id as a property of your store, not a configuration option. This will mean that there can only ever be ONE Todo store, but I am assuming this is by design.

As for the other posters, if the items I posted don't relate to your cases or you still have issues. Please feel free to start a new thread with your code as savitanebula did an I'll be happy to look it over.

I've reviewed you code and found several issues you'll need to address:
2) I'm assuming you want to share the same Store between the two todolists. That's fine, but you've never actually created the shared Store for them to use. In addition, you'll want to use id as a property of your store, not a configuration option. This will mean that there can only ever be ONE Todo store, but I am assuming this is by design.