Results 1 to 2 of 2

Thread: How to Maintain State based on logged in user in ExtJS4 ?

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default How to Maintain State based on logged in user in ExtJS4 ?

    I am currently in the process of implementing state management for a webapplication that we have developed using ExtJS4.


    Example:

    In Ext.application , i wrote

    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    Ext.Component.prototype.stateful = false;



    To which ever control I want to maintain the state, we made 'stateful' property of that control to true, in below
    example made stateful propertyof combobox to true and its working fine( these states will be used for the subsequent logged in user):

    xtype: 'combo'
    stateful: true,
    stateId: myid




    Now I would like to know is there a way to maintain State on the same machine based on the user logged in ?


    For example when user1 logged in and logged out the value selected in a combobox is 10,when user2 logged in and logged out the value selected in a combobox is 20

    Now would like to maintain the state in such a way that when user1 is re-logged in, combo box should show 10 and for user2 , combo box should show 20 . please clarify whether is it possible to maintain state on user basis not for the whole application(machine basis) or not ?

    Thanks & Regards,
    Mani Kumar Y

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    There is only going to be one set of states on one user.
    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

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
  •