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