This is so close I can smell it. I have been tweeking the AutoComplete
custom control suggested earlier in this thread. It is 95% there. I
would probably like to change how the enter key works to make it work
like the up arrow currently works. But I will save that exercise for
another day.
My last issue to have this functional is that the AutoComplete control
remembers the item selected from one viewing to another. This is
problematic, but I have no idea how to mitigate this behavior.
<Ctrl:AutoComplete
id="te_application"
selectedItem="{troubleLogEntry.application}"
rowCount="5"
lookAhead="true"
dataProvider="{applicationsAry}"/>
This is used in a form control that does both add and update functions.
For the update use case I set the selectedItem to the associated
property value of the data object to which this form is tied. For the
add use case, I create a new troubleLogEntry data model, thus all
properties are empty strings. I presume since there is no empty string
value in the AutoComplete dataprovider source array to which match the
selectedItem, its previous state is maintained showing the last value
selected with the control. I need it to reset to no value selected,
i.e. have a selectedIndex of -1. Any ideas on how I can achieve this
result?
TIA
Ian Skinner
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4441
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37