why not do that stuff server side and just bring it in to flex for use. I have no idea how big your data will be but that could be a better stradegy than trying to iterate. how many groups do you have
----- Original Message ---- From: Harry Saputra <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Tuesday, February 12, 2008 10:56:32 PM Subject: RE: [flexcoders] Splitting Array Content , keyword by field content Or may I content filter in DataGrid ( all item I shown in datagrid ) and filtering when columnA constraint ‘xxx’ value ? How ? From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif Abdou Sent: Wednesday, February 13, 2008 11:46 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Splitting Array Content , keyword by field content you can't use a for loop, maybe try a cursor instead "What you cannot do is iterate through the properties of an object if it is an instance of a user-defined class, unless the class is a dynamic class. Even with instances of dynamic classes, you will be able to iterate only through properties that are added dynamically."-Flex Doc ----- Original Message ---- From: Harry Saputra <[EMAIL PROTECTED] com> To: [EMAIL PROTECTED] ups.com Sent: Tuesday, February 12, 2008 10:33:44 PM Subject: RE: [flexcoders] Splitting Array Content , keyword by field content Check my code : arrJadwalPribadi = new ArrayCollection(event.result as Array); arrJadwalPribadi. refresh(); for (var item:Object in arrJadwalPribadi){ if (item.hari=='Senin') { senin.push(item); } else if (item.hari=='Selasa') { selasa.push(item); } …. I get ArrayCollection as Array from Weborb. When I try to this way, I get this error message : ReferenceError: Error #1069: Property hari not found on String and there is no default value. at siakad/::jadwalPribadiResult Handler() when I use variable arrJadwalPribadi on DataGrid, it’s working. I use property hari on labelField too. What’s wrong ? From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Gordon Smith Sent: Wednesday, February 13, 2008 10:42 AM To: [EMAIL PROTECTED] ups.com Subject: RE: [flexcoders] Splitting Array Content , keyword by field content You shouldn't assume that a for-in or for-each-in loop will iterate over the items in any particular order. To ensure this, use a plain 'for' loop. Gordon Smith Adobe Flex SDK Team Looking for last minute shopping deals? Find them fast with Yahoo! Search. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ