Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
    eightbeanz is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
    eightbeanz is on a distinguished road

      0  

    Default


    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!!

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,398
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    8
    Vote Rating
    0
    Tifanix is on a distinguished road

      0  

    Default


    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 :/

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,398
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Ensure that the subclass you created is named the same thing as the storeId you specify
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    15
    Vote Rating
    1
    rfender is on a distinguished road

      0  

    Default


    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.

  7. #7
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    rfender can you redefine the issue as the project shared earlier is gone. Also can you do so on a new thread in http://www.sencha.com/forum/forumdis...ct-3.x-Q-amp-A
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team