Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

DataProvider many-in-many XML

DataProvider many-in-many XML

DataProvider many-in-many XML


This may be a newbie question, but here goes:
My XML is something like this:


Now the question is, how can I make a datagrid with all the info and name, phone1, phone2 and phone3 as columns?

Now I have something like this is flex:


<mx:XML id="mydata" source="http://localhost/retrievePersons.php"></mx:XML>
    <mx:TabNavigator x="20" y="20" width="700" height="300">
        <mx:Canvas label="Persons" width="700" height="250">
            <mx:DataGrid x="10" y="10" width="240" dataProvider="{mydata..person}">
                    <mx:DataGridColumn headerText="Name" dataField="name" width="160"/>
                    <mx:DataGridColumn headerText="Phone1" dataField="phone" width="40"/>
                    <mx:DataGridColumn headerText="Phone2" dataField="phone" width="40"/>
The problem is obviously the multiple phones... I've tried putting {phones.phone} in the dataField and other tests, but no result... On the 2 lasts columns, the dataProvider should be {mydata..person..phone} I think, but how do I do this? (Can't change the xml)
Any suggestions? How can you modify the dataField to skip an other child in the XML?

Thanks in advance !

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close