Wednesday, March 26, 2008

Flex 3 "1 item" problem

private function resultHandler(event:ResultEvent):void{
if(event.result.eSummaryResult == null){
message.text="No search result found";
}else if(event.result.eSummaryResult.DocSum is ObjectProxy){
docsum = new ArrayCollection( [event.result.eSummaryResult.DocSum]);
}else{
docsum = event.result.eSummaryResult.DocSum as ArrayCollection;
}
}

No comments: