1 Reply Latest reply on Sep 1, 2006 9:33 AM by ntsiii

    dataField in DataGrid

    rashmi123
      Please help me with this..

      Please find the sample XML file as below.. I need to access the contents inside the <data> tags. I am using <HTTPService> to access the same..

      <resultset>
      <row>
      <data> </data>
      <data> </data>
      <data> </data>
      <data> </data>
      </row>

      <row>
      <data> </data>
      <data> </data>
      <data> </data>
      <data> </data>
      </row>

      <row>
      <data> </data>
      <data> </data>
      <data> </data>
      <data> </data>
      </row>

      </resultset>


      I need to represent the data in the tabular format. So i am using DataGrid tag of MXML.
      I have set the dataProvider property as below dataProvider="{srv.lastResult.resultset.row}"

      and I am trying to define the series as below

      <mx:columns>
      <mx:DataGridColumn dataField= "{row.data}" headerText="Topic"/>
      </mx:columns>

      I need to set the path to dataField attribute so that it displays the contents inside the <data> tag. Like i have mentioned above. But the path which I have put is not working. I might be typing a wrong path.

      Please let me know whats the correct way of mentioning the path.

      Thanks
      Rashmi