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

Justin Mclean reopened FLEX-11238:
----------------------------------

      Assignee:     (was: Adobe JIRA)
    
> exception in ListCollectionView.addItemsToView
> ----------------------------------------------
>
>                 Key: FLEX-11238
>                 URL: https://issues.apache.org/jira/browse/FLEX-11238
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: List
>    Affects Versions: Adobe Flex SDK 4.0 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>            Priority: Minor
>
> Steps to reproduce: run this:
>                               var arr:Array = ["a", "b", "c"];
>                               var items:ArrayCollection = new 
> ArrayCollection(arr);
>                               var sort:Sort = new Sort();
>                               sort.fields = [new SortField(null, true)];
>                               items.sort = sort;
>                               items.refresh();
>                               items.sort = null; 
>                               items.setItemAt("0", 1);
>  
>  Actual Results:
> TypeError: Error #1006: value is not a function.
>       at 
> mx.collections::ListCollectionView/getFilteredItemIndex()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:703]
>       at 
> mx.collections::ListCollectionView/addItemsToView()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1085]
>       at 
> mx.collections::ListCollectionView/replaceItemsInView()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1687]
>       at 
> mx.collections::ListCollectionView/listChangeHandler()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1272]
>       at flash.events::EventDispatcher/dispatchEventFunction()
>       at flash.events::EventDispatcher/dispatchEvent()
>       at 
> mx.collections::ArrayList/setItemAt()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\collections\ArrayList.as:342]
>       at 
> mx.collections::ListCollectionView/setItemAt()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:547]
>  
>  Expected Results:
> it should work! Filters are optional, not required under the current design.
>  
> Workaround: have a fake filter that always returns true?
>  
> NOTE: my Flex 3 Beta build is actually 172437, although that choice was not 
> available in the Build dropdown.

--
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

Reply via email to