IntelliJ Java IDE
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
Register / Login
JavaRanch » Java Forums » Application Frameworks » Flex
Reply 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: 2231

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: 2231

Thanks Paul ,

Its not at my work place , i will post later .
 
 
subject: How to add elements to an ArrayCollection and display them with DataGrid
 
Threads others viewed
Difference between Array and ArrayCollection ?
Getting data from actionscript class file into Datagrid
Passing Flex objects to Java
Iterator Pattern
Struts-layouts
developer file tools