PDA

View Full Version : Load panel after Logout with new content in View isn't working



vikramiyer
22 Nov 2012, 5:18 AM
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.





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

mitchellsimoens
24 Nov 2012, 6:11 AM
Are you using anything for keeping user data around or something?

vikramiyer
25 Nov 2012, 11:55 PM
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.

vikramiyer
11 Jan 2013, 2:11 AM
Are you using anything for keeping user data around or something?


Hi Mitchell,


Do you have any idea on the top of your mind to circumvent this??