Ext Designer Forums - Unsupported /
Ext Designer: Bugs /
Uncaught TypeError: Cannot call method 'on' of undefined
My application is here.
It does not have any error in Ext Designer, even when loading data, but the following message is occurred if it is uploaded to the web server.
The changes are only a store type and a store name after stable running. Uncaught TypeError: Cannot call method 'on' of undefined
When I went into the source code, I found the undefined value is a store variable.
In the grid view control, it occurs when setting event handler which is a kind of "on load data".
Thanks in advance.
a reply said
"I found a work-around for the particular issue I was facing. Basically, in the store I was setting the userClassName and storeId properties, but to different values, and this is what was causing the issue. Once I set both of these properties to the same value the exported project loaded in the browser."
http://www.sencha.com/forum/showthread.php?151822-Designer-1.2.2-48-export-with-the-new-ExtJS-4.0.7-does-not-load-in-the-browserso I tried to edit these two values to the same and no errors occur anymore!!
In Ext JS 4.0.x's MVC package it is a requirement that the userClassName and storeId be the same thing when working within Designer.
I'm not working with Designer and i'm having this problem, how can I change the storeId and userClassName ? I tried changing it in the store but it didn't work. Help please :/
Ensure that the subclass you created is named the same thing as the storeId you specify
This still occurs in Architect 3 preview. I created two other stores successfully but the third store continually throws this error when I "preview" the app.
rfender can you redefine the issue as the project shared earlier is gone. Also can you do so on a new thread in