All of this assumes that you're happy treating stores as singleton-like global objects. There's nothing wrong with that but it's far from the only way to manage your stores and in many cases it can cause problems when stores are shared between components.

But I think the store is recognized because if it was not the case I will get a message. "Store is undefined"

Are you sure about this? What test did you try to compare the error messages?

Originally Posted by marxan

I've tried your solution by adding a storeId but still the same problem.

Reading between the lines, it sounds like you may have misunderstood what I was proposing. Just adding a storeId won't help, the key detail was that I was creating an instance of the store with that id. Adding the storeId to your Ext.define won't help.

Originally Posted by marxan

Don't know what I'm doing wrong... It's hard to get more information about this message.

Well adding in breakpoints and stepping through in the debugger is ultimately the answer to fixing all bugs when you can't figure out what else to try.

But first...

Try typing this in the console:

Code:

Ext.data.StoreManager.get('StandardGraphStore')

That's what it's doing behind the scenes to lookup you're store by id.

Are you sure about this? What test did you try to compare the error messages?

I removed the store:[StandardGraphStore] from my controller. In that case, it's undefined...

Originally Posted by skirtle

Reading between the lines, it sounds like you may have misunderstood what I was proposing. Just adding a storeId won't help, the key detail was that I was creating an instance of the store with that id. Adding the storeId to your Ext.define won't help.

Well adding in breakpoints and stepping through in the debugger is ultimately the answer to fixing all bugs when you can't figure out what else to try.

But first...

Try typing this in the console:

Code:

Ext.data.StoreManager.get('StandardGraphStore')

That's what it's doing behind the scenes to lookup you're store by id.

I get undefined when I type this in the console

Last edited by skirtle; 3 Oct 2012 at 7:35 AM.
Reason: Adjust tags so that I am not misquoted