[flexcoders] Newbie compile issue rattling my brain
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 DescriptionPathResourceLocation 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
Re: [flexcoders] Newbie compile issue rattling my brain
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
RE: [flexcoders] Newbie compile issue rattling my brain
I have an idea, but not sure. When I pasted your code, I noticed end of line characters in some of your strings. For example: mx:Object case=1006 patient=Sandy Macdaddy arrival=2007/12/05 delivery=2007/12/20 / This should be mx:Object case=1006 patient=Sandy Macdaddy arrival=2007/12/05 delivery=2007/12/20 / I cleaned it, compiled it, and ran it. All was good. However, I also changed it from an Mx:Module to an Mx:Canvas, and then dropped it in my main application. Hope this helps, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mcaplan_labnet Sent: Tuesday, November 27, 2007 9:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie compile issue rattling my brain 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