Results 1 to 2 of 2

Thread: Get username value once the user is logged in

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    62
    Vote Rating
    0
      0  

    Default 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?

  2. #2
    Sencha Premium User
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    721
    Vote Rating
    46
      0  

    Default

    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?

Posting Permissions

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