Hey Brendon.

Now it's working! Thanks for the help


--- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Hey Alex,
> 
> Given an XML structure like so:
> 
>             [Bindable]
>             private var myXML:XML = <contacts>
>                                         <contact>
>                                             <name href="
> http://www.example.com";>Huber</name>
>                                         </contact>
>                                         <contact>
>                                             <name href="
> http://www.example.com";>John</name>
>                                         </contact>
>                                         <contact>
>                                             <name href="
> http://www.example.com";>Bob</name>
>                                         </contact>
>                                     </contacts>;
> 
> Your datagrid columns would look like this...
> 
> <mx:DataGridColumn dataField="name" />
> <mx:DataGridColumn dataField="name" labelFunction="myFunc"/>
> 
> And you'd use a labelFunction like this...
> 
> private function myFunc(item:Object, column:DataGridColumn):String
> {
>     return [EMAIL PROTECTED];
> }
> 
> 
> 
> Brendan
> 
> On 6/3/07, alexander.marktl <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> >
> > I wanna parse a XML file like this:
> >
> > <contacts>
> > <contact>
> > <name href="http://www.example.com";>Huber</name>
> > ...
> > </contact>
> > <contacts>
> >
> > I have no problem parsing it, except of the href within the name tag.
> > My DataGrid looks like this:
> >
> > <mx:DataGrid dataProvider="{xmlContacts.contact}">
> > <mx:columns>
> > <mx:DataGridColumn headerText="Name" dataField="name" />
> > <mx:DataGridColumn headerText="Link" dataField="???" />
> > ...
> > </mx:columns>
> > </mx:DataGrid>
> >
> >  
> >
> 
> 
> 
> -- 
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>


Reply via email to