You probably did not set resultFormat="xml" (which is good because the DataGrid doesn't support XML) so you're using the wrong syntax.  Just use myXMLService.result[0]. 

 

Matt

 

-----Original Message-----
From: Andrew Spaulding [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 9:47 PM
To: [email protected]
Subject: [flexcoders] how do i select the first item in an xml list

 

hi all,

ive used a httpservice to retrieve an xml document at runtime.

the result of this service call is used as my datagrid dataprovider.
when i click an item i set a var selectedItem equal to
event.target.selectedItem, which works fine to display the selected
row.

how do I set selectedItem to equal the first node?

ive tried combinations of the following :

myXMLservice.result.childNodes[0];

myXMLservice.result.firstChild;

and so on...


any ideas?



Reply via email to