Hi Will,

It's much easier to work with one-to-many data relationships, if the xml is in a hiarchical format.  In your example, the header node is at the same level as the lines node.  That makes them siblings.  Since an order has only one header, you can move the header node items into the order node (attributes work here too). This will make it easier to associate the children with the parent.  If you're interested, here is a similar one-to-many example; that also illustrates DataGrid expansion-in-place.

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=472 

I hope that this helps you,
Tim Hoff

--- In [email protected], "Will Morgan" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> The results from the webservice I'm using look something like this:
>
> <order>
> <header>
> <order>12345</order>
> </header>
> </headers>
>
> <lines>
> <line>
>
> </line>
> </order>
>
> It's similar to a master / detail view.
>
> I can only bind to either headers or orders.
>
> headersDataGrid.dataprovider = "{webservice.getOrder.lastResult.headers}"
>
> I was hoping I could use headersDataGrid.selectedItem.lines to show the
> lines detail in another dataGrid, but because it is only bound to headers, I
> can't do it.
>
> Is there a simple way to do this within Flex or would you suggest changing
> the way the results are returned?
>

__._,_.___

--
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




__,_._,___

Reply via email to