Which component are you using? It s most likely a bug.
You should be able to do this no problems with the Flextras AutoCompleteComboBox http://www.flextras.com/?event=ProductSamples&ProductID=10
I just tested it from our API Explorer ( http://www.flextras.com/AutoCompleteComboBox/Samples/CodeGenerator/ ).
Click the Application Tab on top
Click the DataProvider Tab on the right.
Under "Values" type your nex text and click add new.
Then type in the AutoCompleteComboBox in the middle and the new value shows up.
If you want a text field instead of a ComboBox, you can remove the down arrow. ( From the AutoComplete Tab, toggle the Down Arrow Visible property from true to false )
thanks for your reply.
Actually what i need is alot simpler than the link you posted. I have a FORM in which there are like 15 form fields and as always in the forms, they are all placed vertically. Now i have one field called "Location". Now there are alot of values of this "Location" so more intuitive option is to use ComboBox but on the other hand, it is possible that user types some new value. I was looking for a Auto-Complte code that provides
1) such an autolisting... i-e if user types "g", then the list should appear
2) Incase he types "gtyyy", this new word should be added in some file or database in such as way that the next time i type "gty", it should display this option as well
I Hope i make myself clear. Now some free auto-suggest components are there but they have 2 disadvantages.
1) They donot fit in the form as form field
2) They dont allow the addition of new data
What you posted, i dont know how can i use that in a form
Hope this is understandable
Looking for reply,
Our component can filter as you type as is.
To add a new items to the dataProvider, you'll need to decide when an item is considered new. Is it when the user clicks a save button? Is it when the AutoComplete loses focus? It is a business rule that depends greatly upon your application.
Here is a sample I set up for you, using the Flextras AutoCompleteComboBox. It adds a new item to the dataProvider when the component loses focus. It also demonstrates using the component as a form item in a Flex form.
If sizing is a problem, you can resize it using the width property. If you want the text input to be at one width, and the drop down to be at a different width, our component supports that too and you can activate it using the "ExpandDropDownToContent" property.
If you don't want to load the full dataProvider at once, but want to ping a database or other remote service with every keystroke, our component supports that too.
Does this help?
( Feel free to ping me off-forum if you feel I Can be of additional assistance http://www.flextras.com/?event=ContactForm )
i want to use the auto-complte in my form, so that i get all the relevant auto-suggestions.. in case there the user is adding a new one, he simply checks a checkbox and the text will be added. Next time, it should display the newly entered one as well
i know i am really annoying you
That project import is a bit of a nightmare.
It would be easiest for you to just copy and paste the code into a new template. I'm not sure why Flex Builder's "export project with source" has so many problems on the import.
If you want to add items to the AutoComplete using some other field and a checkbox; just update the dataProvider when the user checks the CheckBox. If you want the user to type into the AutoComplete input, it is, basically, the same procedure.
I updated the code with each approach:
No, you aren't annoying me.
Does this help?
thanks alot man... It is working now.. although the water mark is there.. but still its good for me.... if you have 5 mins, would you mind replying to this
Glad to hear it!
To remove the watermark, you'll need to purchase a license.
More information on the licensing is here:
Or go right to purchase: http://www.flextras.com/index.cfm?event=shoppingCartAction&ResourceID=9_Buy
If this causes an issue, I'd love to find out why; feel free to contact me directly: