Just an idea. Make all the columnNames uppercase in your mxml.


--- In [email protected], "Francesco" <[EMAIL PROTECTED]> 
wrote:
> I've checked (case, ...) and all seems to be correct.... :-(
> 
> Should I trasfer the result to a model?
> 
> Thanks
> Francesco
>   -----Messaggio originale-----
>   Da: [email protected] 
[mailto:[EMAIL PROTECTED]
> conto di Abdul Qabiz
>   Inviato: giovedi, 26. maggio 2005 14:55
>   A: [email protected]
>   Oggetto: RE: [flexcoders] WebSercices, result, Array, DataGrid - 
Problems
> 
> 
>   Check the columnName name mataches(case etc) with the on 
returned array?
> 
> 
>   -abdul
> 
> 
> 
>   -----Original Message-----
>   From: [email protected] 
[mailto:[EMAIL PROTECTED] On
>   Behalf Of Francesco
>   Sent: Thursday, May 26, 2005 6:06 PM
>   To: Flexcoders
>   Subject: [flexcoders] WebSercices, result, Array, DataGrid - 
Problems
> 
>   Hi,
> 
>   I've a problem with my application.
> 
>   I call a WebService that returns as result an array        -->
>   webservice.GetHeaders.result
> 
>   Then I try to put the result into a dataGrid like this:
> 
>         <mx:DataGrid 
dataProvider="{webservice4.GetAllHeaders.result}"
>   width="100%">
>               <mx:columns>
>                     <mx:Array >
>                           <mx:DataGridColumn  columnName="Date"
>   headerText="date" />
>                           <mx:DataGridColumn columnName="From"
>   headerText="From" />
>                           <mx:DataGridColumn columnName="Size"
>   headerText="Size" />
>                           <mx:DataGridColumn columnName="Subject"
>   headerText="Subject" />
>                           <mx:DataGridColumn columnName="UID"
>   headerText="UID" />
>                     </mx:Array>
>               </mx:columns>
>         </mx:DataGrid>
> 
>   but the dataGrid still empty.
> 
>   I've tried to put the result into a TextArea and I've receive:
>   [object Object], [object Object], [object Object], [object 
Object]
> 
>   (I Know that the result should have 4 elements)
> 
>   I've tested the webservice with a Test web page and it is ok.
> 
>   Any suggestion?
> 
>   Thanks!
> 
>   Bye Francesco
> 
> 
>   
*********************************************************************
***
>   ****
>   ********************************
>   Here is my code;
> 
>   <?xml version="1.0" encoding="utf-8"?>
>   <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
>   verticalGap="10">
> 
>   <mx:WebService serviceName="popUtil" id="webservice4"
>   result="alert('result
>   received')" showBusyCursor="true">
>         <mx:operation name="Stat">
>           <mx:request>
>             <APassword></APassword>
>             <AUsername></AUsername>
>             <AHost></AHost>
>           </mx:request>
>         </mx:operation>
>         <mx:operation name="GetMessages">
>           <mx:request>
>             <ANumArray>
>               <item></item>
>               <item></item>
>             </ANumArray>
>             <APassword></APassword>
>             <AUsername></AUsername>
>             <AHost></AHost>
>           </mx:request>
>         </mx:operation>
>         <mx:operation name="TestLogin">
>           <mx:request>
>             <APassword></APassword>
>             <AUsername></AUsername>
>             <AHost></AHost>
>           </mx:request>
>         </mx:operation>
>         <mx:operation name="GetAllHeaders">
>           <mx:request>
>             <APassword></APassword>
>             <AUsername></AUsername>
>             <AHost></AHost>
>           </mx:request>
>         </mx:operation>
>         <mx:operation name="GetHeaders">
>           <mx:request>
>             <ANumArray>
>               <item></item>
>             </ANumArray>
>             <APassword></APassword>
>             <AUsername></AUsername>
>             <AHost></AHost>
>           </mx:request>
>         </mx:operation>
>       </mx:WebService>
>         <mx:HBox>
> 
>         <mx:Button label="Stat" click="webservice4.Stat.send()" />
>         <mx:Button label="GetAllHeaders"
>   click="webservice4.GetAllHeaders.send()" />
>         <mx:Button label="GetHeaders"
>   click="webservice4.GetHeaders.send()" />
>         <mx:Button label="TestLogin"
>   click="webservice4.TestLogin.send()" />
>         <mx:Button label="GetMessages"
>   click="webservice4.GetMessages.send()" />
> 
>       </mx:HBox>
> 
> 
>         <mx:DataGrid id="data1"
>   dataProvider="{webservice4.GetAllHeaders.result}"
>   width="100%">
>               <mx:columns>
>                     <mx:Array >
>                           <mx:DataGridColumn  columnName="Date"
>   headerText="date" />
>                           <mx:DataGridColumn columnName="From"
>   headerText="From" />
>                           <mx:DataGridColumn columnName="Size"
>   headerText="Size" />
>                           <mx:DataGridColumn columnName="Subject"
>   headerText="Subject" />
>                           <mx:DataGridColumn columnName="UID"
>   headerText="UID" />
>                     </mx:Array>
>               </mx:columns>
>         </mx:DataGrid>
> 
>      <mx:TextArea id="getHeaders1" width="100%" height="100%"
>   text="{webservice4.GetAllHeaders.result}" />
>      <mx:TextArea id="stat1" width="100%" height="100%"
>   text="{webservice4.Stat.result.MsgCount}" />
>      <mx:TextArea id="TestLogin1" width="100%" height="100%"
>   text="{webservice4.TestLogin.result}" />
>      <mx:TextArea id="getMessages1" width="100%" height="100%"
>   text="{webservice4.GetMessages.result}" />
> 
> 
>   </mx:Application>
> 
> 
> 
> 
> 
> 
> 
> 
>   Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------------------
---------
> --
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/flexcoders/
> 
>     b.. To unsubscribe from this group, send an email to:
>     [EMAIL PROTECTED]
> 
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to