What gets returned from my HTTPService call l looks like this:

<jobs>
<job>
<loc>NY</loc>
<client>SPRI</client>
<product>0000</product>
<name>Non-Project Time</name>
<jobno>93106</jobno>
<est_status></est_status>
</job>
<job>
<loc>NY</loc>
<client>SPRI</client>
<product>0000</product>
<name> Trafficking TOS</name>
<jobno>93110</jobno>
<est_status></est_status>
</job>
</jobs>

And I'm interested in populating the datagrid where one row equals one job listing from the xml.
Maybe I need to format my dataGrid differently?
thanks,
mark

On Aug 29, 2006, at 3:23 PM, Darren Houle wrote:

Depends on your XML data. An ArrayCollection is basically an Array of
Arrays, so... if your XML is complicated and multilayered with lots of
nested tags in nested tags I'm not sure you can easily convert it to an
ArrayCollection. But... if your XML looks something like this:

<person>
<name>John</name>
<name>James</name>
<name>Jude</name>
</person>
<person>
<name>Mark</name>
<name>Luke</name>
<name>Matthew</name>
</person>

Then you might have a chance :-)

Darren

>From: "DJ Lift" <[EMAIL PROTECTED]net>
>Reply-To: [EMAIL PROTECTED]ups.com
>To: [EMAIL PROTECTED]ups.com
>Subject: [flexcoders] HTTPService Result to ArrayCollection
>Date: Tue, 29 Aug 2006 18:09:58 -0000
>
>Hi there,
>I'm new and I don't understand something :)
>Hopefully someone can help me out.
>
>I have a datagrid that I am attempting to populate.
>I've been able to successfully populate the grid with xml from and
>HTTPService with no
>problem.
>
>But now I want to be able to filter and create specific sort functions for
>the grid, which I
>understand requires the dataProvider for the dataGrid to be an
>ArrayCollection. Is this
>true?
>
>If so, can i somehow take the XML result from the HTTPService and make an
>ArrayCollection out of it? I'm having trouble attempting this.
>
>Below is what i have so far...
>
><mx:HTTPService id="jobInfoReq"
> url=""http://mccray/~mm/oracle/joblookup.php">http://mccray/~mm/oracle/joblookup.php"
> useProxy="false"
> method="GET"
> showBusyCursor="true">
> <mx:request xmlns="">
> <pirateLoc>{pirateLocSelector.label}</pirateLoc>
> <pirateClient>{pirateClientSelector.label}</pirateClient>
> <pirateProduct>{pirateProductSelector.label}</pirateProduct>
> </mx:request>
> </mx:HTTPService>
>
>
>
>
>
>
>
>--
>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
>
>
>
>
>
>


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to