Don't know if this is the same problem as my recent,
previous post, or if
it's different, but I basically have the same question...
Now I'm calling a CF WebService that returns a Query object... it just
contains one row, one column, called FULLNAME.
Using the WebService lastResult in a DataGrid's dataprovider works fine,
there's a million examples of that, but trying to pull out that FULLNAME
cell's string value is proving to be a challenge for me...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="IACleanService.authenticateUser.send()">
<mx:WebService id="IACleanService"
wsdl="http://localhost/ia_cleanup.cfc?wsdl">
<mx:operation name="authenticateUser">
<mx:request xmlns="">
<username>jsmith</username>
<password>asdf1234</password>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:DataGrid height="400" width="400"
dataProvider="{IACleanService.authenticateUser.lastResult}"
/>
<mx:TextArea width="400" height="400"
text="{IACleanService.authenticateUser.lastResult.fullname}"
/>
</mx:Application>
The DataGrid above displays the FULLNAME field just fine, but the TextArea
displays nothing. Doesn't help to uppercase it to lastResult.FULLNAME
either.
I'm probably missing something really simple, but... just about all the
examples in the Flex documentation either show how to pull out a single node
value from an HTTPService... or show how to use a WebService in a
DataGrid... but I can't find any examples where single values are pulled out
of a WebService result. Something where the result node values are split up
and used in different places, like one node value is used as a role
variable, another is used to set a model state variable, another is used as
a button label, etc. I need an example of calling a WebService and breaking
the result into pieces for use in multiple places, not just sticking the
whole lastResult into the dreaded DataGrid. Any help would be appreciated
:-)
Thanks!
Darren