-
21 Aug 2012 7:25 PM #1
Unanswered: Object [object Object] has no method 'getViewport'
Unanswered: Object [object Object] has no method 'getViewport'
Hi,
I have developed an application with sencha touch pr3 and now migrating to the sencha-touch-2.0.1.1-gpl version. And I had to make some of the changes in my application as per new structure.
I read somewhere refs is no more an array and should be mentioned something like this, but still the issue hasn't gone away.
can some one tell me what is wrong with this code ? Its been four months I am out of this project and now migrating is looking little painful.Code:Ext.application({ name : 'TestApp', autoCreateViewport : true, controllers : [ 'App' ], config: { refs : { viewport : { selector : 'test-viewport', }, }, handleClick: function() { var viewport = refs.getViewport(), getViewport(); } }
thx
Srinivas
-
22 Aug 2012 4:17 AM #2
any helpiing hands ?
any helpiing hands ?
looking for helping hand to launch my application soon. appreciate any help.
-
23 Aug 2012 6:29 AM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3160
autoCreateViewport is not a valid config of Ext.application. Sencha Touch 2 creates a global "viewport" that by default is a Container with card layout that you can add items to and use. You can get this viewport via Ext.Viewport.
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.
-
16 Nov 2012 1:04 PM #4
ViewPort to show a form after click
ViewPort to show a form after click
can I use a viewport to show a form after a disclosure in a list , what is the best practice ? for sencha touch 2.0


Reply With Quote