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/::jadwalPribadiResultHandler()
when I use variable arrJadwalPribadi on DataGrid, it's working. I use
property hari on labelField too.
What's wrong ?
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, February 13, 2008 10:42 AM
To: [email protected]
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
- [flexcoders] Splitting Array Content , keyword by field con... Harry Saputra
- Re: [flexcoders] Splitting Array Content , keyword by ... Sherif Abdou
- RE: [flexcoders] Splitting Array Content , keyword ... Harry Saputra
- RE: [flexcoders] Splitting Array Content , keyw... Gordon Smith
- RE: [flexcoders] Splitting Array Content , ... Harry Saputra
- Re: [flexcoders] Splitting Array Content , keyword by ... Sherif Abdou
- RE: [flexcoders] Splitting Array Content , keyword ... Harry Saputra
- Re: [flexcoders] Splitting Array Content , keyword by ... Sherif Abdou
- RE: [flexcoders] Splitting Array Content , keyword ... Harry Saputra
- [flexcoders] Re: Splitting Array Content , keyw... simonjpalmer
- RE: [flexcoders] Re: Splitting Array Conten... Harry Saputra
- [flexcoders] Re: Splitting Array Conte... simonjpalmer

