You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/17 04:30:13 UTC

[jira] [Updated] (FLEX-33028) Combo Box not selecting correct Object

     [ https://issues.apache.org/jira/browse/FLEX-33028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean updated FLEX-33028:
---------------------------------

    Labels: easy test  (was: )
    
> Combo Box not selecting correct Object
> --------------------------------------
>
>                 Key: FLEX-33028
>                 URL: https://issues.apache.org/jira/browse/FLEX-33028
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: DMV Flex Builder Integration
>    Affects Versions: Adobe Flex SDK 4.6 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easy, test
>
> I have a combobox and I am populating the list with an arraylist so I can sort it.  My label function is based upon the sort order (first last or last first)
>  
>             <s:ComboBox id="usersDDL"
>                        x="110" y="10" width="375" 
>                        prompt="Enter or Select a Name"
>                        creationComplete="usersDDL_creationCompleteHandler(event)"
>                        labelFunction="usersDDLLabel" 
>                        labelToItemFunction="usersDDL_LabelToItemHandler"
>                        change="usersDDL_changeHandler(event)">
>                 
>                 <mx:ArrayCollection id="usersList" list="{getUsersResult.lastResult}"/>
>             </s:ComboBox>
>  
> I start typing the first letter of the name I am looking for and the drop down list pops up showing names near what I have typed so far, if I select with the mouse on one of the names then that name is put in the label.  If I repeat this again and again select the same name as before, the label puts the first name showing in the dropdown instead of the name I selected.  However, if I select a diff name than the one I did before, then the diff name shows in the label.
>  
>  
> Lets say I typed an L and dropdown list shows  Larry, Linda, Lydia.  If I select Linda then Linda is populated.  If again type an L in the combobox, then the same list is shown and again I select Linda but this time, Larry is shown in the label.  If I do it one more time but select Lydia the Lydia is shown in the label.  Now, I did notice that when you type the L then Larry is in the label box by default.  So it appears that if you select the already selected one then the label field is not repopulated but the problem with this is that it no longer is populated with the selected list but with the L   Larry autocomplete label.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira