Results 1 to 10 of 14

Thread: On Logout revert back to Viewport

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Gurgaon, India
    Vote Rating

    Default Answered: On Logout revert back to Viewport


    In my app i had a logout button. I want when a user tap on it, user must be redirect to viewport.

    In my app.js i had used
    launch: function() {

    For logout i had use below code in view
    xtype: 'button',
    docked: 'bottom',
    ui: 'decline',
    style: 'border-radius:0',
    text: 'Logout',
    action: 'logoutuser'

    and a logout function in my controller
    logout: function() {
    console.log('User will Logout');
    //What should i add here which will reload my vieport again

    I am getting console.log message successfully. Please tell me which method will take me to viewport again.


  2. Hmm...this is strange.
    What version of Sencha Touch are you using?

    I created a quick SenchaFiddle to simulate your app structure. Maybe you can have a look at this and compare it to your code. I hope my example does exactly this what you want to achieve? It definitely works
    Here's the link:

    Best regards,

Tags for this Thread

Posting Permissions

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