4 Replies Latest reply on Aug 17, 2006 4:54 PM by krrobert

    web service returns [object Object] ???

    konlin77 Level 1
      New to flex 2 need a hand.

      Trying to set up a simple webService which returns names to a list. I can call the webService, and it returns and populates my listbox, but populates it with [object Object] I can't figure out how to format it properly. If i return it into a datagrid, my grid populates but is blank (the scrollbar is created) heres my code. any ideas would be appreciated - again very new to flex. Was a flasher. I know the webService itself is fine, because i use it in flash all the time.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">

      <mx:WebService id="wsGetNames" wsdl=" http://localhost/test.cfc?wsdl" useProxy="false">
      <mx:operation name="getUser">

      <mx:Panel x="10" y="10" width="475" height="400" layout="absolute">
      <mx:Button x="10" y="10" label="Get Names" id="getNames" click="wsGetNames.getUser.send()"/>
      <mx:List dataProvider="{wsGetNames.getUser.lastResult}" id="names_list" width="161" height="300" y="40" x="10"> </mx:List>