28 Jun 2012 4:40 AM #1
Unanswered: 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.
In Ext.application , i wrote
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):
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
6 Jul 2012 2:13 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
There is only going to be one set of states on one user.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.