4 Replies Latest reply on Oct 26, 2009 4:21 AM by 123miguel123

    event.result put all values on one row of the grid


      Hi there!


      Here it comes my problem:


      This is the result of my jsp (getXML.jsp)
      <data><macfilter><mac>00</mac><name>miPC</name></macfilter><macfilter><mac>11</mac><name>m iPC2</name></macfilter></data>


      My actionscript code:

      miGrid.dataProvider = event.result.data.macfilter;


      Datagrid definition:
      <mx:DataGrid x="341" y="261" height="67" width="372" id="list1" textAlign="center" fontSize="10" alpha="1.0" borderThickness="0" borderStyle="solid" showHeaders="false">
      <mx:DataGridColumn width="90" dataField="mac" headerText="Direccion MAC"/>
      <mx:DataGridColumn width="75" dataField="name" headerText="Nombre"/>


      The actionscript send call:
      <mx:HTTPService id="controlOffice" url="{DFLT_SERVER+':'+DFLT_PORT + '/getXML.jsp'}"


      Why I get all the values (separated by colons) in just one row???

      It shows in the first row: Mac: 00,11 Name:miPC,miPC2


      What is the problem?


      Thanks in advance!