Código :
<Conceptos> <Concepto id=\"1\" descripcion=\"Primer Concepto\" Lun=\'true\' Mar=\'true\' Mier=\'true\' Jue=\'false\' Vie=\'true\' Sab=\'true\' Dom=\'false\'/> <Concepto id=\"2\" descripcion=\"Segundo Concepto\" Lun=\'false\' Mar=\'false\' Mier=\'true\' Jue=\'false\' Vie=\'true\' Sab=\'false\' Dom=\'false\'/> <Concepto id=\"3\" descripcion=\"Tercer Concepto\" Lun=\'true\' Mar=\'false\' Mier=\'true\' Jue=\'true\' Vie=\'false\' Sab=\'true\' Dom=\'false\'/> </Conceptos>
Donde me he quedado sin poder resolverlo es en la parte de asignarle los valores almacenados en el Xml externo a los checkbox
Código :
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<mx:Application xmlns:mx=\"http://www.adobe.com/2006/mxml\" layout=\"absolute\" creationComplete=\"ConceptoXml.send();\">
<mx:HTTPService id=\"ConceptoXml\" url=\"http://localhost/Conceptos.xml\" resultFormat=\"e4x\" showBusyCursor=\"true\"/>
<mx:Script>
<![CDATA[
import mx.controls.CheckBox;
]]>
</mx:Script>
<mx:VBox width=\"100%\"
height=\"100%\">
<mx:DataGrid width=\"380\" height=\"210\" dataProvider=\"{ConceptoXml.lastResult.Concepto}\">
<mx:columns>
<mx:DataGridColumn headerText=\"Concepto\" dataField=\"@descripcion\" width=\"120\"/>
<mx:DataGridColumn headerText=\"L\" dataField=\"@Lun\" editorDataField=\"@Lun\"
rendererIsEditor=\"true\" itemRenderer=\"mx.controls.CheckBox\"/>
<mx:DataGridColumn headerText=\"M\" dataField=\"@Mar\" itemRenderer=\"mx.controls.CheckBox\"/>
<mx:DataGridColumn headerText=\"M\" dataField=\"@Mier\" itemRenderer=\"mx.controls.CheckBox\"/>
<mx:DataGridColumn headerText=\"J\" dataField=\"@Jue\" itemRenderer=\"mx.controls.CheckBox\"/>
<mx:DataGridColumn headerText=\"V\" dataField=\"@Vie\" itemRenderer=\"mx.controls.CheckBox\"/>
<mx:DataGridColumn headerText=\"S\" dataField=\"@Sab\" itemRenderer=\"mx.controls.CheckBox\"/>
<mx:DataGridColumn headerText=\"D\" dataField=\"@Dom\" itemRenderer=\"mx.controls.CheckBox\"/>
</mx:columns>
</mx:DataGrid>
</mx:VBox>
</mx:Application>
Alguien que pueda ayudarme, le estaría muy agradecido.
P.D.T. El Xml podria modificarlo a otra estructura de ser necesario
