There is no “imagen” anywhere in that xml.  How do you expect to find it?

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of tonyx_788
Sent: Friday, July 07, 2006 8:24 PM
To: [email protected]
Subject: [flexcoders] Re: datagrid.selectedItem.image (don't work)

 

--- In [EMAIL PROTECTED]ups.com, "Deepa Subramaniam" <[EMAIL PROTECTED].>
wrote:
>
> If your DataGrid is consuming e4x XML as its dataProvider, then the
> selectedItem value will be an e4x XML node. Is 'imagen' an attribute of
> the selected node or a child? If its an attribute then you'll need to
> do: source={datagrid.selectedItem.@imagen}
> <mailto:%7bdatagrid.selectedItem.@imagen%7d> in your Image tag. If
> imagen is a child node, you probably need to dot down correctly to it.
> Trace out selectedItem and you'll see the structure of the XML and then
> formulate an _expression_ accordingly.
>
>
>
> -deepa
>
>
>
> ________________________________
>
> From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On
> Behalf Of tonyx_788
> Sent: Thursday, July 06, 2006 9:33 AM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] datagrid.selectedItem.image (don't work)
>
>
>
> i'm using e4x
> 2questions
> everything else works great but the images won't show when using
> e4x,if i use http it'll display the image ok
> anyone knows why?
>
> and the datatip willshow everything on the xml, when hover the
> datagrid why?
>
> ...............
> <mx:DataGrid dataProvider="{xlc}" height="419"
> editable="false" width="150" id="datagrid" scroll="true"
> change="xlc,cargarDatos.refresh()" x="0" y="0">
> <mx:columns><mx:Array>
> <mx:DataGridColumn columnName="name" showDataTips="true"
> dataTipField="name"/></mx:Array>
> </mx:columns>
> </mx:DataGrid>
> ..................
>
> <mx:Image x="369" y="298" id="image1" width="169" height="178"
> visible="true" scaleContent="true"
> source="{datagrid.selectedItem.imagen}" horizontalAlign="center"/>
> ....................
>

i tried with
{datagrid.selectedI[EMAIL PROTECTED] and nothing
please a little help
my xml looks something like this
<catalog>
<books>
<name>any name</name>
<desc>any description</desc>
</books>
</catalog>

__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to