This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Flex and the fly likes How to add elements to an ArrayCollection and display them with DataGrid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "How to add elements to an ArrayCollection and display them with DataGrid" Watch "How to add elements to an ArrayCollection and display them with DataGrid" New topic
Author

How to add elements to an ArrayCollection and display them with DataGrid

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I am trying to add elements to an ArrayCollection using


and provided this ArrayCollection as a dataprovider to the DataGrid and when running the page it is displaying an exception that variable "Ravi" is not defined .

Please share your ideas , why is it happening so ??

Thanks in advance .


Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"Ravi" (as your current code has is) is not a variable it is a value. Can you show the code that causes the error? (FlexBuilder will break at the line that causes it).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Paul ,

Its not at my work place , i will post later .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to add elements to an ArrayCollection and display them with DataGrid
 
Similar Threads
Struts-layouts
Passing Flex objects to Java
Iterator Pattern
Getting data from actionscript class file into Datagrid
Difference between Array and ArrayCollection ?