Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Beta 3 to latest RC : Uncaught TypeError: Cannot call method 'substring' of undefined

  1. #11
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    As I said, it will be back in Controller meaning it's not there.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  2. #12
    Sencha User
    Join Date
    Apr 2011
    Posts
    48
    Answers
    2
    Vote Rating
    1
      0  

    Default

    I'm finding it hard to understand what you're saying.

    I've not put it in my controller or the functionality to use 'views: ' has been removed from controllers and will be coming back in a future release?

  3. #13
    Sencha User
    Join Date
    Apr 2011
    Posts
    48
    Answers
    2
    Vote Rating
    1
      0  

    Default

    in my view I've added :

    Code:
        requires : [
            'MyApp.view.Login', 
            'MyApp.view.Profile',
            'MyApp.view.Settings'
        ],
    and changed

    Code:
    { xtype: 'MyApp.view.Settings', title: 'Settings', iconCls: 'settings' }
    to

    Code:
    { xclass: 'MyApp.view.Settings', title: 'Settings', iconCls: 'settings' }
    I have no idea why this works other than it's what is used in one of the bundled examples.

  4. #14
    Sencha User
    Join Date
    Apr 2011
    Posts
    48
    Answers
    2
    Vote Rating
    1
      0  

    Default

    *sigh*

    The problem now is my tab panel doesn't change tabs.

  5. #15
    Sencha User
    Join Date
    Apr 2011
    Posts
    48
    Answers
    2
    Vote Rating
    1
      0  

    Default

    Ok i got it working again

    Set the requires array in the view and in my settings view changed the alias (widget.settings) to xtype (settings).

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •