Get username value once the user is logged in
I have login form with username and password.
I want to get the value of Username to use it later?
I tried this:
usernameField = Ext.getCmp('userNameTextField');
username = usernameField.getValue(); //It render an empty string
how can I access this value?
Any help please?
There are several possibilities how to do this. It all depends on how your app is written. Do you use MVC style? Can you post some more code? F.e. the login form and the part where you want to retrieve the username?