Hi,

I came across this error not long ago, and when I search about it I
found something like this is logged in the Flex issue tracker (Jira)

The work round provided is something like:
Before you call the filter function on the dataprovider for the Combo
box, set the selected index for the combo box to -1 (neagtive 1)

HTH

David

On Tue, Jul 29, 2008 at 6:23 PM, jitendra jain
<[EMAIL PROTECTED]> wrote:
> Hi friends,
>
> My code is as follows
>        public function setVisitor():void{
>
>                            if(frm_visitType.selectedItem == "E"){
>                              visitorList= ObjectUtil.copy(model.visitorList)
> as ICollectionView;
>                              visitorList.filterFunction =
> filterExisitingVisitorCode;
>                               visitorList.refresh();
>                            }else{
>                               visitorList=
> ObjectUtil.copy(model.visitorList) as ICollectionView;
>                               visitorList.filterFunction =
> filterNewVisitorCode;
>                                visitorList.refresh();
>                            }
>
>                       }
>                    }
>                }
>                public function filterExisitingVisitorCode(item :
> Object):Boolean{
>                    return (item.visitorType=="Exisitng")
>                }
>            public function filterNewVisitorCode(item : Object):Boolean{
>                    return (item.visitorType=="New")
>                }
>
> When there is no New Visitor it throws this error.
>
> ReferenceError: Error #1069: Property data not found on User and there is no
> default value.
> at mx.controls::ComboBase/get value()
> at mx.controls::ComboBase/setSelectedItem()
> at mx.controls::ComboBase/set selectedItem()
> at mx.controls::ComboBox/set selectedItem()
> at mx.controls::ComboBase/updateDisplayList()
> at mx.controls::ComboBox/updateDisplayList()
>
>
> Thanks,
>
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
>
> 

Reply via email to