I'm using Ext Designer 1.2.2 with Ext JS 3. I successfully export the project, but when I try to run it I receive:
I dig a little into the generated code and here is what I found:
Uncaught TypeError: Cannot call method 'on' of undefined
The problem is in the following code:
I.e. here "store" returned by the StoreMgr is not defined and of course we can't access its method "on". It is not defined because it is missing in StoreMgr. So, I started to search where we add things inside the StoreMgr and found that this is happening in the constructor of Ext.data.Store by using
store = Ext.StoreMgr.lookup(store);
So far so good ... it is clear for me that once the "store" is created register itself in that store manager. I simply put a console.log in the very first line of the constructor of the store and that log never occur. It looks like there is no any initial store creation. In other words I need a "store" object before it is created.
In my case I have a PagingToolbar with a store set and when that component needs it the store is still not created.
So, my questions is: can you give me any advice how to fix the problem or just any direction of the Stores' things. I.e. how are they created, initialized etc ...