thank for the answer with your code, the datagrid result would be like
column1 column2 column3 p1 p2 p3 p1 p2 p3 p1 p2 p3 but I would like to have a datagrid like column1(record[1]) column2(record[2]) column3(record[3]) p1 p1 p1 p2 p2 p2 p3 p3 p3 Is it possible ?? thanks --- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > Hi, > > You should be able to use simple dot notation: > > <mx:DataGrid dataProdiver="{feed.lastResult.xchart}" > <mx:DataGridColumn datafield="xset.record.p1"> > </mx:DataGrid> > > or > > <mx:DataGrid dataProdiver="{feed.lastResult.xchart.xset.record}" > <mx:DataGridColumn datafield="p1"> > </mx:DataGrid> > > -TH > > --- In [email protected], "olivier" <olivier- > ext.ratard@> wrote: > > > > 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="[EMAIL PROTECTED]"> > > </mx:DataGrid> > > > > Do you have any idea ? or there is an unique xml strucutre for > datagri > > d ?? > > > > thanks > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/

