I have this file:

<fields>
    <field1>value1</field1>
    <field2>value2</field2>
</fields>

output in these columns:

<mx:columns>
    <mx:DataGridColumn headerText="Field" width="100" editable="false" 
labelFunction="getFieldLabel" />
    <mx:DataGridColumn headerText="Value" editable="true" 
labelFunction="getValueLabel" />
</mx:columns>

with these label functions:

private function getFieldLabel(data:Object, column:DataGridColumn):String
{
    return XML(data).localName().toString();
}
private function getValueLabel(data:Object, column:DataGridColumn):String
{
    return XML(data).text().toString();
}

Question: if I want to edit the value column, how do I set the text() property 
of an XML node?


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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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

Reply via email to