If dotting down in the labelField does not work, use a labelFunction()

 

Tracy

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of olivier
Sent: Tuesday, July 25, 2006 5:49 AM
To: [email protected]
Subject: [flexcoders] Datagrid. xml structure doesn' match

 

Hi,

I would like to know what's the best xml structure to use datagrid.

Indeed, my xml data source (legacy system) is like :

<xchart>
<xset name="x1">
<xrecord>
<p1>zzzz</p1>
<p2>zzzz</p2>
<p3>zzzz</p3>
</xrecord>
<xrecord>
<p1>zzzz</p1>
<p2>zzzz</p2>
<p3>zzzz</p3>
</xrecord>
</xset>
<xset name="x2">
<xrecord>
<p1>zzzz</p1>
<p2>zzzz</p2>
<p3>zzzz</p3>
</xrecord>
<xrecord>
<p1>zzzz</p1>
<p2>zzzz</p2>
<p3>zzzz</p3>
</xrecord>
</xset>

</xchart>

I can use the charting components with this xml (using []) but I
encountered some troubles with datagrid

my data source is composed in 4 xset. Each of these xset is composed
by one or more xrecord.
But one xset is corresponding to one column
As we can set the dataprovider only in the datagrid tag, I can't
realize it.

my whish (obviously doesn' t work):

<mx:DataGrid dataProdiver="{feed.lastResult.xchart}"
<mx:DataGridColumn datafield="xset[0].record@p1">
</mx:DataGrid>

Do you have any idea ? or there is an unique xml strucutre for datagri
d ??

thanks

__._,_.___

--
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