I've often had to look at multiple examples to figure out what I need to do for a project. Here are a few places to try, the first one having some code that matches your scenario, - http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/ (scroll down for the datagrid example; same thing can be used for the ADG) - http://www.adobe.com/devnet/flex/quickstart/httpservice/ - http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=1020 - http://learn.adobe.com/wiki/display/Flex/2b.+Code+Files
- Alex --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > What are you wanting in your display? > > > > A straight table with three columns: "period", "ccode", and "detects"? > > > > If so, then that is not hierarchical and you are making this more > complicated than it is. Why did you choose ADG instead of plain old > DataGrid? > > > > If your issue is accessing data nested in subnodes, then use a > labelFunction. > > > > Make the dataProvider = xmlData.rollup (an XMLList. If you plan to > undate it programatically, then wrap it in an XMLListCollection). The > labelFunction can reach down into any node of rollup you want > > > > Tracy > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of todd.bruner > Sent: Thursday, December 04, 2008 7:06 PM > To: [email protected] > Subject: [flexcoders] Re: Data not appearing in AdvancedDataGrid > > > > Alex: > > Thank you for your suggestions. I stuffed the raw XML into a TextArea > and it looks fine and matches what I get requesting the same url in my > web browser. > > The reason I'm fussing with array/arraycollection is ignorance. I'm > trying to adapt things from various examples I've seen. I'm trying to > do as you suggest bind directly, however, I'm not sure I'm doing that > right either. > > I agree with you about keeping it simple...unfortunately, that's what > I thought I was doing! :-) > > So given the my xml format, how do I bind it to the ADG? All the > examples I can find use objects and HeirachicalData. If anyone can > point me towards an example, I'll take from there. > > Thanks! > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > , "oneworld95" <oneworld95@> wrote: > > > > Two things: > > - Try stuffing the raw XML into a TextArea to see what it looks like. > > You could bind it directly to the ADG without first converting to > > array/arraycollection; that's the beauty of the e4x format you're > > using on the HTTPService call. Not sure why you're doing the > > conversion to an array and then to an arraycollection. If you need to > > modify the values when they're displayed, try using the labelFunction > > on each column. > > - When I run into issues in code, I try to make it as simple as > > possible, make sure that works, then add the additional pieces back in > > one by one until I can see what's causing it to act funny. > > > > I'm thinking something's not quite right with the data after you > > manipulate it. Look at that piece. > > > > -Alex > > >

