-
1 Apr 2012 8:31 PM #1
Uncaught TypeError: Cannot call method 'on' of undefined
Uncaught TypeError: Cannot call method 'on' of undefined
Hello,
http://sharpdefine.com/~cherryzone/
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.
Uncaught TypeError: Cannot call method 'on' of undefined
The changes are only a store type and a store name after stable running.
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.
-
1 Apr 2012 9:12 PM #2
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-browser
so I tried to edit these two values to the same and no errors occur anymore!!
-
2 Apr 2012 8:18 AM #3
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.
Aaron Conran
@aconran
Sencha Architect Development Team
-
16 Apr 2012 8:40 PM #4
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 :/

-
17 Apr 2012 6:31 AM #5
Ensure that the subclass you created is named the same thing as the storeId you specify
Aaron Conran
@aconran
Sencha Architect Development Team
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote