Questions tagged [arraycollection]

The ArrayCollection class is a wrapper class that exposes an Array as a collection in Flex which can be accessed and manipulated. Use this tag for questions related to arraycollection.

The ArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces. Operations on a ArrayCollection instance modify the data source; for example, if you use the removeItemAt() method on an ArrayCollection, you remove the item from the underlying Array.

Reference

340 questions
0
votes
1 answer

Can Sorting be performed on a Flex arrayCollection based on date/time values instead of normal text string / alpha?

I have a flex Array Collection created from a live XML data source and am trying to use my date/time string in the array to SORT the array prior to having the UI display the info / listing... currently the array is created and displays fine but the…
tamak
  • 1,541
  • 2
  • 19
  • 39
0
votes
3 answers

Actionscript: Sorting ArrayCollection by date: YYYY-MM-DD

I have an ArrayCollection of Objects. Each Object has the following keys/values: {date: 2009-12-01, visits=13555, bouceRate=45} {date: 2009-12-05, visits=46955, bouceRate=45} {date: 2009-12-06, visits=13685, bouceRate=45} {date: 2009-12-02,…
Yozef
  • 829
  • 11
  • 27
0
votes
1 answer

flex socket write string array

I am trying to push a series of strings in an array collection to the client application via socket. But, sometimes, the strings does not get pushed out one by one. For example, the client application would receive the data as so: array[0],…
0
votes
2 answers

Refresh GroupCollection of an AdvancedDatagrid - the sorted Arraycollection gets Randomized

I have an AdvancedDatagrid which gets populated by an ArrayCollection. I ordered the ArrayCollection by date (one of its properties), so it shows from past to future. The thing is, if I refresh the GroupingCollection (for immediate display in the…
0
votes
1 answer

Doctrine ArrayCollection fixed size

I'm working with a database with an entity of type Store. Each store has opening hours for each day of the week defined in an OpeningHour entity. A store can only have a maximum of 7 OpeningHour entities. This is fine since I can control that in the…
Luke
  • 20,878
  • 35
  • 119
  • 178
0
votes
1 answer

How do I dynamically add an object to my Flex 3 Array Collection?

I have thoroughly searched, but have not found an answer to this question. Maybe my question is wrong. I have a total of 30 Children on each Canvas child of my tabNavigator. The code works well for counting and iterating through the children, but…
0
votes
1 answer

How do I change the value of an item in a Flex ArrayCollection

I have an ArrayCollection with values predefined. I want to assign a new value to items in the arrayCollection but can not figure out how. Basically I want to do something like this: acGuages.itemUpdated(0).thevalue = 90; (Changing the value from…
leif
  • 195
  • 1
  • 7
  • 17
0
votes
1 answer

Flex - Cursor search in ArrayCollection not working

So I'm following the book Adobe Flex 4 Training From the Source by Michael Labriola, Jeff Tapper and Matthew Boles, for context. I'm building a Shopping Cart Class that recieves a ShoppingCartItem object (which is just a POAO) from the mxml and adds…
0
votes
1 answer
0
votes
1 answer

Add arraycollection to another arraycollection without any duplicates

I'm pretty new to Flex but I'm taking a few tutorials to try and get the hang of a project I'm working on. I'm using AS3. I currently need to just add an arraycollection (A) to an arraycollection (B) that is populating a datagrid. So when the user…
Vegeta
  • 37
  • 6
0
votes
1 answer

Add arraycollection to arraycollection

I'm pretty new to Flex but I'm taking a few tutorials to try and get the hang of a project I'm working on. I'm using AS3. I currently need to just add an arraycollection (A) to an arraycollection (B) that is populating a datagrid. So when the user…
Vegeta
  • 37
  • 6
0
votes
1 answer

In an ArrayCollection need to count the records in a field

Flash Builder 4, AS3. In an ArrayCollection need to count the records in a field, for example need to know how many users have age of 25. This is the ArrayCollection dataProvider for my DataGrid. In SQL is easy, just need the command: select age,…
0
votes
1 answer

Symfony2 Doctrine2 Array Collection OneToMany doesn't add item

I have problem with the array collection. If i don't use "$livraison->setChoix($livraison->getChoix());" in form valid, the item is doesn't save in relation. And with this, the item in collection as duplicate in any save. i have 2 entity,…
Paul T.
  • 577
  • 1
  • 9
  • 21
0
votes
1 answer

How to convert Array 2D to Array collection in Flex

I have a 2D array as follows: Asia India Chennai TN Category1 Product1 100 Asia India Mumbai MH Category1 Product1 100 Asia India Calcutta CT Category1 Product1 100 Asia India Calcutta CT Category2 Product2 200 EMEA UK London …
0
votes
2 answers

Populate ArrayCollection with HTTPService

Yes there is a question like this one, but there is no activity and no answer. I want to load data from a external XML file, using a HTTPService, and on the ResultEvent of the same HTTPService i want him to populate a ArrayCollection with the data…
Fábio Antunes
  • 16,984
  • 18
  • 75
  • 96