Results 1 to 4 of 4

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    57
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Are you using anything for keeping user data around or something?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    57
    Vote Rating
    0
      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
      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??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •