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
1
vote
1 answer

Sort item numbers with dot on array collection in flex

I need to order an array of items by their item numbers on a datagrid in Flex 3.5. I don't actually need to re-order it once it's inside the datagrid, I just need it to be sorted already on the arraycollection before sending it to the…
Helio Borges
  • 122
  • 1
  • 8
1
vote
1 answer

Symfony Doctrine Query Builder Where last in arraycollection

I want to use symfony's query builder and add a where to the last item in an array collection $query = $em->getRepository('RlBookingsBundle:Booking')->createQueryBuilder('b') ->select('b, v, c, ca, q') ->leftJoin('b.vehicle', 'v') …
user1806445
  • 47
  • 1
  • 6
1
vote
1 answer

updating parts of a ArrayCollection

I have a ArrayCollection, containing a set of Value Objects. This ArrayCollection populates a DataGrid. I'm loading data into the ArrayCollection via a HTTPService call to the server. Once the first server call is made, I then start making repeated…
StephenAdams
  • 521
  • 2
  • 9
  • 26
1
vote
1 answer

How do i save a form to the database without knowing the field type or its id in flex and coldfusion?

I am working on a function to generate a form at runtime in Flex based on a call to the DB. The call to the DB returns the field types, id, tooltips etc as an arraycollection, the arraycollection is then parsed in order to ascertain what control to…
charlie
  • 11
  • 4
1
vote
0 answers

When I retrieve my ArrayCollection the keys are missing

I'm working on Symfony2, using Doctrine2. My problem is that when I save an array collection with keys, the moment I retrieve them, the keys are the usual 0 to n array index keys, not the ones I put in. This is my entity: /** * @var array *…
Joseph
  • 11
  • 4
1
vote
1 answer

binding to arraycollection does not work

I am using flex SDK 3.5. I have model.as and in it i have an ArrayCollection (name it arr_mod) which is Bindable. From my mxml i link to this arr_mod in three places: 1) in DataGrid i set dataprovider={arr_mode} ... 2) in Button i add new item to…
ronk
  • 203
  • 1
  • 5
  • 13
1
vote
1 answer

Doctrine ArrayCollection of objects User

I have an Doctrine ArrayCollection of objects User, i want to check if an User exists in this ArrayCollection. does it exist a method that compare the objects?
Manuel Raf
  • 11
  • 1
1
vote
0 answers

Can not edit Doctrine ArrayCollection

I have a problem with editing an Doctrine2 ArrayCollection of a many-to-many assosciation. Persisting an new entity is no problem and works fine. But if I would like to persist an entity with new added CollectionItems I got an…
1
vote
1 answer

Converting a string into ArrayCollection (C#, see string below)

how to get from such string ' name1{value1,value2};name2{value3}; ... nameN{value12, valueN} ' Array or arrays in such form: Array = {string, int};{string, int};{string, int}; like this: { { name1 ; value1} { name1 ; value2} { name2 ;…
Rella
  • 65,003
  • 109
  • 363
  • 636
1
vote
5 answers

ActionScript 3 - Removing Duplicates in ArrayCollection

I have an ArrayCollection of a list of usernames and user id's. In this list there are duplicates that I need to remove. I've searched the internet and while there are a lot of example of this using Arrays, I can't find any clear examples using…
1
vote
3 answers

Doubt in action script for Flex: getting unique elements from an ArrayCollection

I have an ArrayCollection as mentioned below. private var initDG:ArrayCollection = new ArrayCollection([ {fact: "Order #2314", appName: "AA"}, {fact: "Order #2315", appName: "BB"} {fact: "Order #2316",…
1
vote
1 answer

flex arraycollection - can i specify the size for an arraycollection?

Context: I use an ArrayCollection object as follows: 1) Number of elements is fixed. 2) Elements are inserted at a given position, based on some order. Question: Can I set the max size of the ArrayCollection? Will fixing the size improve the…
crazy horse
  • 423
  • 2
  • 10
  • 25
1
vote
1 answer

External data in TileList Flex

I'm working for the first time with a TileList and an itemRenderer and I'm having a bit of trouble getting the information from my array collection to display and looking for some advice. Here's what I've got private function…
Adam
  • 2,632
  • 8
  • 34
  • 60
1
vote
4 answers

Flex custom sorting capabilities with server side support

The sorting capabilities that are available in Flex assume that you have access to all the data, but I'm using a paginated datagrid (with custom code), the datagrid is binded to an ArrayCollection instance, on the next page call I change the data of…
Felipe
  • 161
  • 2
  • 7
1
vote
2 answers

Flex: How can I Make changes to an ArrayCollection bound to data grid live?

I have an ArrayCollection bound to an editable DataGrid, another component needs to know when the ArrayCollection changes (as a result of changes in the DataGrid) so it can also update itself, so is listening to the COLLECTION_CHANGE event of the…
ChrisInCambo
  • 8,455
  • 15
  • 50
  • 63