I’m new to using flex and I’ve tried a number of ways to bring in some php data into a project of mine with no success. I did not write the php code, but from what i know it gathers data and puts it into a csv. The value I’m trying to extract first is “Station Name”.
What I have now in my code is:
[LEFT][SIZE=2]<?xml version=“1.0” encoding=“utf-8”?>[/SIZE][/LEFT]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<mx:Application[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] xmlns:mx="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]http://www.adobe.com/2006/mxml[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" layout="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]absolute[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" xmlns:esri="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]http://www.esri.com/2008/ags[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" creationComplete=“aTempData.send()”[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE]
[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<mx:HTTPService[/COLOR][/SIZE]
[LEFT][/COLOR][/SIZE][SIZE=2]id="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]aTempData[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" url="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]http://beta.glos.us/get_obs.php?observation=air_temperature[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<mx:DataGrid[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] id="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]aTempDataGrid[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" dataProvider="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]{[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]aTempData.lastResult[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]}[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<mx:columns>[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<mx:DataGridColumn[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] headerText="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]Station Name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" dataField="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]Station Name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]</mx:columns>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]</mx:DataGrid>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][COLOR=black]the data grid appears with a label, but no data in the columns. I feel like I’ve tried everything and can’t seem to move forward.[/COLOR] [/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[LEFT][SIZE=2][SIZE=2][COLOR=black]Any tips or suggestions would be great.[/COLOR][/SIZE][/SIZE][/LEFT]