I think you need define your list in an <mx:Array> (inside the source block) since this is the type of the ArrayCollection.source property. I could be wrong though, I usually don't define data in MXML.
Regards, ...aaron On 11/27/07, mcaplan_labnet <[EMAIL PROTECTED]> wrote: > > Hi there, > > I'm learning the ropes of Flex. I have a pretty much textbook example > of how to set up a datagrid that is resulting in compile time syntax > errors. I can't for the life of me see the error. > > Any ideas? > > Thanks! > > mike > > Severity and Description Path Resource Location Creation Time Id > 1084: Syntax error: expecting colon before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 851 > 1084: Syntax error: expecting colon before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 854 > 1084: Syntax error: expecting colon before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 857 > 1084: Syntax error: expecting colon before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 860 > 1084: Syntax error: expecting colon before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 863 > 1084: Syntax error: expecting identifier before case. > labnet/src/modules cases_list.mxml line 7 1196183214531 850 > 1084: Syntax error: expecting identifier before case. > labnet/src/modules cases_list.mxml line 7 1196183214547 853 > 1084: Syntax error: expecting identifier before case. > labnet/src/modules cases_list.mxml line 7 1196183214547 856 > 1084: Syntax error: expecting identifier before case. > labnet/src/modules cases_list.mxml line 7 1196183214547 859 > 1084: Syntax error: expecting identifier before case. > labnet/src/modules cases_list.mxml line 7 1196183214547 862 > 1084: Syntax error: expecting identifier before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 852 > 1084: Syntax error: expecting identifier before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 855 > 1084: Syntax error: expecting identifier before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 858 > 1084: Syntax error: expecting identifier before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 861 > 1084: Syntax error: expecting identifier before rightbrace. > labnet/src/modules cases_list.mxml line 7 1196183214547 864 > > <?xml version="1.0" encoding="utf-8"?> > <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" > width="100%" height="100%"> > <mx:TitleWindow width="100%" height="100%" layout="absolute" > title="Cases"> > <mx:DataGrid left="10" top="10" right="10" bottom="10"> > <mx:dataProvider> > <mx:ArrayCollection> > <mx:source> > <mx:Object case="1002" patient="Chris Pordan" > arrival="2007/12/02" delivery="2007/12/16" /> > <mx:Object case="1003" patient="Dave Shompson" > arrival="2007/12/03" delivery="2007/12/17" /> > <mx:Object case="1004" patient="Pat > Boodfellow" arrival="2007/12/04" delivery="2007/12/18" /> > <mx:Object case="1005" patient="Mike Meath" > arrival="2007/12/05" delivery="2007/12/19" /> > <mx:Object case="1006" patient="Sandy > Macdaddy" arrival="2007/12/05" delivery="2007/12/20" /> > </mx:source> > </mx:ArrayCollection> > </mx:dataProvider> > <mx:columns> > <mx:DataGridColumn headerText="Case" dataField="case"/> > <mx:DataGridColumn headerText="Patient" > dataField="patient"/> > <mx:DataGridColumn headerText="Arrival" > dataField="arrival"/> > <mx:DataGridColumn headerText="Delivery" > dataField="delivery" /> > </mx:columns> > </mx:DataGrid> > </mx:TitleWindow> > </mx:Module> > > > -- Aaron Miller Chief Technology Officer Splash Labs, LLC. [EMAIL PROTECTED] | 206-328-5485 http://www.splashlabs.com

