2 Replies Latest reply on May 20, 2009 5:49 AM by Gregory Lafrance

    Get History of entered text in textinput?

    karthik flex Level 1

      hi guys

       

      i need to to know one thing
      for e.g i have username as textinput
      from morning to evening there can be many users entering the username
      can i get the history of 10 user last entered.

       

      Any idea

      please help

       

      karthik.k

        • 1. Re: Get History of entered text in textinput?
          Richard_Abbott Level 3

          Karthik,

          have a look at the recent thread called "Mimic browser prior-value suggestions for text input" which references two ways to do an auto-complete field in Flex. I realise this is not quite what you are looking for, but the principles of using the local storage area to hold results could, I think, easily be adapted to your case where yuo are wanting to retain a certain number of values and (presumably) use them somewhere else in your applciation.

          Richard

          • 2. Re: Get History of entered text in textinput?
            Gregory Lafrance Level 6

            I would just store the usernames of those who have logged in within a database table on the server, and then on app startup populate an array with those names, or some number you desire, like the latest 10 names.

             

            Then rather than a TextInput you could have a custom control that has a custom item editor, so when the user clicks inside the "text input" it drops down the list of latest users.

             

            Not super simple, but that's the nature of what you are trying to do.

             

            If this post answers your question or helps, please mark it as such.