Hard to know why it worked in the web service but not for remote object.
Run the debugger and see what's different in the setter for your
dataObject property in the cell renderer?

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of angelosalsa
Sent: Tuesday, April 11, 2006 10:46 PM
To: [email protected]
Subject: [flexcoders] WebService to RemoteObject, Why do I get [object
Object] from the RO but it work

Hi,
I have a TileList that gets populated from a WebService search 
results and that works fine, I wanted to change it to a RemoteObject 
and for some reason I am getting [object Object] as results in the 
TileList, here is what I have in the Webservice:

<mx:Model id="searchCriteria">
<filter />
</mx:Model>

<mx:WebService id="EmployeeService"
wsdl="http://MyIPAddress:myPort/CFIDE/components/ContactManagerCFC.cfc
?WSDL"
useProxy="false"
showBusyCursor="true"> 
<mx:operation name="search">
<mx:request>
<searchCriteria>{searchCriteria.filter}</searchCriteria>
</mx:request>
</mx:operation>
</mx:WebService> 
<mx:ArrayCollection id="searchResults" 
source="{mx.utils.ArrayUtil.toArray(EmployeeService.search.result)}">
</mx:ArrayCollection> 

And the TileList:

<mx:TileList id="myList" dataProvider="{searchResults}" 
columnCount="1" change="selectedItem = 
event.target.selectedItem;ViewEmployeeVisible()" 
height="100%" width="100%" textRollOverColor="#99CCCC" 
textAlign="left" 
selectionColor="#55AAAA" wordWrap="false" rowCount="10" 
itemRenderer="myComponents.admins.employees.employeelist"/>

SO THIS WORKS, but doing this doesn't:

<mx:Model id="searchCriteria">
<filter />
</mx:Model>

<mx:RemoteObject id="EmployeeService" 
destination="ColdFusion" 
source="CFIDE.components.ContactManagerCFC" 
showBusyCursor="true"
fault="Alert.show(event.fault.faultstring);">
<mx:method name="search">
<mx:arguments>
<searchCriteria>{searchCriteria.filter}</searchCriteria>
</mx:arguments> 
</mx:method>
</mx:RemoteObject> 

<mx:ArrayCollection id="searchResults" 
source="{mx.utils.ArrayUtil.toArray(EmployeeService.search.result)}">
</mx:ArrayCollection> 

And the TileList:

<mx:TileList id="myList" dataProvider="{searchResults}" 
columnCount="1" change="selectedItem = 
event.target.selectedItem;ViewEmployeeVisible()" 
height="100%" width="100%" textRollOverColor="#99CCCC" 
textAlign="left" 
selectionColor="#55AAAA" wordWrap="false" rowCount="10" 
itemRenderer="myComponents.admins.employees.employeelist"/>

I AM GETTING [object Object] 
Any Ides?
Thanks 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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