Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    57
    Vote Rating
    0
    vikramiyer is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,073
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Are you using anything for keeping user data around or something?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    57
    Vote Rating
    0
    vikramiyer is on a distinguished road

      0  

    Default


    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.

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    57
    Vote Rating
    0
    vikramiyer is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    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??

Thread Participants: 1