I am using a repeater to display information from my application. In my cfc, I return an array of structures to my flex app. This array, holds all the information about the file I am trying to display. The problem I am having is this.
In the array I have an array object that tells me what side the person was on the file. They are either buyer or seller. The problem I have is if the array object has one person of hte buyer side and one person on the seller side. The repeater displays them both on each side. So if I have Bill Bob on seller side and Jim bob on buyer side the repeater processes it like this Seller Side Buyer Side Bill Bob Bill Bob Jim Bob Jim Bob When it should look like this Seller Side Buyer Side Bill Bob Jim Bob Can someone give me a bit of insight as to why it would do this. I have posted the code below. REPEATER DP AS CODE: for ( var i:Number=0;i<result.length;i++){ if(result[i].AGENTSIDE == 'seller'){ sellRP.dataProvider = result; } else{ buyRP.dataProvider = result; } REPEATER CODE: <mx:HBox x="10" y="286" width="100%"> <mx:VBox height="100%" width="100%"> <mx:Repeater id="sellRP"> <mx:Canvas width="100%" height="200"> <mx:Label x="10" y="10" text="{String(sellRP.currentItem.AGENTNAME)}"/> </mx:Canvas> </mx:Repeater> </mx:VBox> <mx:VBox height="100%" width="100%"> <mx:Repeater id="buyRP"> <mx:Canvas width="100%" height="200"> <mx:Label x="10" y="10" text="{String(buyRP.currentItem.AGENTNAME)}"/> </mx:Canvas> </mx:Repeater> </mx:VBox> </mx:HBox> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/