-
22 Nov 2012 5:18 AM #1
Load panel after Logout with new content in View isn't working
Load panel after Logout with new content in View isn't working
Hi,
I have a user screen which displays some information. After I logout when I login in again with another user the view should refresh with the new user. The view isn't refreshed.
Code://In the controller onlogoutButtonTap: function(button, e, options){ Ext.getCmp('signinPanel').destroy(); var step = Ext.create("Namespace.view.SignIn"); Ext.Viewport.add(step); Ext.Viewport.setActiveItem(step); } //In the view Ext.define('Namespace.view.SignIn',{ .... xtype: 'signIn', config : { id: 'signinPanel' ..... }
How do I get to refresh the view? Destroy/Hide and setActiveItem nothing seems to be loading the newly created view again in the onlogoutButtonTap
-
24 Nov 2012 6:11 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Are you using anything for keeping user data around or something?
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.
-
25 Nov 2012 11:55 PM #3
User data is cached into localStorage and Stores via Ajax call.... So its not an issue I see the data populating into the variables. View is not capable of refreshing the contents.
-
11 Jan 2013 2:11 AM #4


Reply With Quote