Hi Gordon, Justin, and Aaron,

Thanks for the tips!  Trimming out the reserved words did the trick!

Best,

mike


--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Unfortunately, 'case' is a reserved word in ActionScript (like 'class',
> 'var', 'function', 'if', 'for', 'switch', etc.) and you can't use
> reserved words as names of object properties. It's worth filing a bug at
> http://bugs.adobe.com/flex that the compilation error message isn't
> sufficiently helpful in determining the problem.
>  
> Gordon Smith
> Adobe Flex SDK Team
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Justin Winter
> Sent: Tuesday, November 27, 2007 10:35 AM
> To: [email protected]
> Subject: [flexcoders] Re: Newbie compile issue rattling my brain
> 
> 
> 
> Here you go:
> 
> The lower-case "c" in your object was throwing an error and I put this
> all in an Application instead of a module.
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <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:Application>
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Aaron Miller" <amiller@> wrote:
> >
> > 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 mcaplan@ 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
> <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.
> > amiller@ | 206-328-5485
> > http://www.splashlabs.com <http://www.splashlabs.com> 
> >
>


Reply via email to