You need to use a labelFunction(). dataField can only take a string, not an expression, and so it can only find first level properties of any object.
UserId, .Roles are all first level child nodes of the parent, but RoleName is a child of Roles, thus not directly accessible via dataField. A labelFunction gets a reference to the entire item (in your case a Get__CompIntfc__USER_PROFILEResponse node, I thnk) and a reference to the dataGrid column, and must return a string, which will be displayed. In that function, you might need to do: return item.Roles.RoleName.text(); Now, that format looks like there might be more than one RoleName per role. Yo will need to figure out what that would mean to your UI. Tracy Spratt, Lariat Services, development services available _____ From: [email protected] [mailto:[email protected]] On Behalf Of Jim Sent: Wednesday, April 08, 2009 3:41 PM To: [email protected] Subject: [flexcoders] Need help processing XML into Flex app I'm using a webservice to bring some data into Flex and display it in a datagrid. For non-repeating items (e.g. Name) it works fine. But if there are several instances of something (e.g. Role), I cannot figure out how to get at them. Does anyone know how I could put them in a list or combobox or something? Here is an example of what the incoming XML might look like (with a space after the < so the input to the forum doesn't get processed!). If I use a datagrid with a datagridcolumn where datafield="UserID", "UserDescription", or "PrimaryPermissionList", it works great. But I get an error that RoleName doesn't exist no matter what I do. I tried an Itemrenderer to no avail; could be me. Thanks. Jim < ?xml version="1.0"?> < SOAP-ENV:Get__CompIntfc__USER_PROFILEResponse xmlns:SOAP-ENV="http://xmlns. <http://xmlns.oracle.com/Enterprise/Tools/schemas/M405276.V1> oracle.com/Enterprise/Tools/schemas/M405276.V1"> < SOAP-ENV:UserID>axa2131</SOAP-ENV:UserID> < SOAP-ENV:UserDescription>Anthony Adams</SOAP-ENV:UserDescription> < SOAP-ENV:PrimaryPermissionList>EMPTY</SOAP-ENV:PrimaryPermissionList> ... < SOAP-ENV:Roles> < SOAP-ENV:RoleName>PROPERTY_ADMIN</SOAP-ENV:RoleName> < /SOAP-ENV:Roles> < SOAP-ENV:Roles> < SOAP-ENV:RoleName>LOGON_FIN</SOAP-ENV:RoleName> < /SOAP-ENV:Roles> < SOAP-ENV:Roles> < SOAP-ENV:RoleName>PORTAL_USER</SOAP-ENV:RoleName> < /SOAP-ENV:Roles> ...

