In your case, you need to fire the event that sets the source of the
image whenever the data to the cellrenderer is changed.  Not on creation
complete.  You can do this two ways:

 

1)       bind the source of the image tag to the data :

<mx:Image source="{  data.file_name }" />

 

2)       Override the "set data" function to update the image source
whenever the data has been updated.

 

I would go with #1 first.

 

-Andy

 

_____________________________________

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cisnky
Sent: Monday, January 29, 2007 3:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Newbie question: Datagrid and a WS

 

Do you have time for another datagrid related question?

 

http://tech.groups.yahoo.com/group/flexcoders/message/62788
<http://tech.groups.yahoo.com/group/flexcoders/message/62788> 



 

On 1/29/07, Andrew Trice <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

I talked to Tony on instant messenger about that... He was missing the
"send()" method for his web service. 

 

_____________________________________

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com <http://www.cynergysystems.com/> 

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
<http://www.cynergysystems.com/blogs/page/andrewtrice> 

Email: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

Office: 866-CYNERGY 

 

________________________________

From: [EMAIL PROTECTED] ups.com <http://ups.com/>
[mailto:[EMAIL PROTECTED] ups.com <http://ups.com/> ] On Behalf Of
cisnky
Sent: Monday, January 29, 2007 3:17 PM
To: [EMAIL PROTECTED] ups.com <http://ups.com/> 
Subject: Re: [flexcoders] Newbie question: Datagrid and a WS 

 

Is the data from an xml document?

 

If so, can I see your xml doc?

 

On 1/29/07, Tony < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote: 

hola peeps!

im a newbie, so please bear with me...

<?xml version="1.0" encoding="utf-8"?> 
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " layout="vertical">    
    <mx:WebService 
        id="myService" 
        wsdl=" http://dev.navtrak.net/intranet/crm_cfc.cfc?wsdl
<http://dev.navtrak.net/intranet/crm_cfc.cfc?wsdl> ">            
        <mx:operation name="getVehicleDataForCompany"
resultFormat="object">
            <mx:request>
                <companyIdNumber>1</companyIdNumber> 
            </mx:request>
        </mx:operation>                
    </mx:WebService>    
    <mx:DataGrid
dataProvider="{myService.getVehicleDataForCompany.lastResult}">
        <mx:columns>
            <mx:DataGridColumn headerText="Vehicle Name"
dataField="vehicleName"/>
            <mx:DataGridColumn headerText="Phone Number"
dataField="phoneNumber"/> 
            <mx:DataGridColumn headerText="Ip Address Number"
dataField="ipAddressNumber"/>
        </mx:columns>
    </mx:DataGrid>    
</mx:Application>

is my webservice tag, and the resulting dataProvider param of the
mx:datagrid tag, right? 
im close on getting data into a datagrid from a WS, i just want to make
sure...
im getting the datagrid with no data in it??

thanks for all your help!
and hello, im a newbie, but learning fast :)

tony weeg 
navtrak, inc.
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

 

 

Reply via email to