PsychoDazey
asked on
refresh data source in Autocomplete
I am using the Autosomplete example I got from here: http://snippets.dzone.com/posts/show/5973 for Flex 3. when the application launches it grabs the data for the autocomplete from a SQL database and builds an array collection> this same data is used on 2 different screens. The issue I am having is that if you launch the app and go to screen 1 and type some letters in the AC control (say you type C for example) then select a value from the list of possible matches. Then you go to screen 2, the data only contains values that match what was typed in screen 1. How do I tell it once I leave one of the screens that the data has to be refreshed?
ASKER
What do you mean by using the same instance? I believe I am but I am a novice flex programmer so I'm not sure what you mean. Als, how would I reset the filterFunction?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks wanna -
Your solution of the dummy filterFunction worked. However for those following along; there were other issues so I ended up finding another component to use. The autocomplete from my link above is older and not as robust as some of the others available.
Your solution of the dummy filterFunction worked. However for those following along; there were other issues so I ended up finding another component to use. The autocomplete from my link above is older and not as robust as some of the others available.
And when the AC filterFunction is invoked does it do a filter on the Datasource itself.
If you then you may need to reset the filterFunction everytime.