-
24 Feb 2012 10:32 AM #1
Answered: Beta 3 to latest RC : Uncaught TypeError: Cannot call method 'substring' of undefined
Answered: Beta 3 to latest RC : Uncaught TypeError: Cannot call method 'substring' of undefined
Anyone know what this is? I get the error
Code:Uncaught TypeError: Cannot call method 'substring' of undefined. sencha-touch-all.js:15
After going from Beta 3 to the RC that was released 2 days ago.
-
Best Answer Posted by GFI_SI
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).
-
24 Feb 2012 10:39 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
That is usually due to the xtype not being found.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Feb 2012 10:41 AM #3
Is there a list of changed xtypes in the RC? Because literally all I did was replace the old beta 3 sencha touch folder with the new release candidate folder.
-
24 Feb 2012 10:47 AM #4
Something to do with aliases.
If I replace
withCode:{ xtype: 'settings', title: 'Settings', iconCls: 'settings' }
it's fine.Code:{ xtype: 'panel', title: 'Settings', iconCls: 'settings' }
My settings view class has an alias of 'widget.settings'.
Is this format deprecated now?
-
24 Feb 2012 10:47 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
What are you trying to use? Is the file loaded? There shouldn't be any xtypes that were renamed.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Feb 2012 10:49 AM #6
It appears as though my views are no longer loading.
-
24 Feb 2012 10:50 AM #7Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Feb 2012 10:52 AM #8
In my Viewport controller
The viewport view and controller are being loaded however, but they are both set in the app.js.Code:views : ['Login', 'Profile', 'Settings'],
Last edited by GFI_SI; 24 Feb 2012 at 11:22 AM. Reason: clarification
-
24 Feb 2012 10:59 AM #9Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
In a view, you should be using the requires array. views is for Application and it will be back in Controller.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Feb 2012 11:22 AM #10
I'm confused. That's what I have in my controller.
I still get the error.


Reply With Quote