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

Load Content into TextInput Flex?

I've got content coming into my application using a query and an ArrayCollection. I know how to display the content into a DataGrid by using the dataProvider propriety, but I'd like to use TextInput components and drop the DataGrid altogether. Does…
Adam
  • 2,632
  • 8
  • 34
  • 60
0
votes
1 answer

Big ArrayCollection and Doctrine (symfony2)

I use Symfony for my website but I have a problem with the performance, I have a big ArrayCollection ( +50000 elements), in my doctrine query I did the differents joins but the page is too long to load. How I can optimise the loading of the…
Arkerone
  • 1,971
  • 2
  • 22
  • 35
0
votes
2 answers

How to bind flex ArrayCollection's data in column of AdvancedDataGrid

I want to display some of the properties of an Object in the AdvancedDataGrid. How can I do that? I want to declare DataGridColumn and bind it to respective propery of an object.I have an ArrayCollection which contains many object of type…
0
votes
2 answers

How can i create sql-like AS3 ArrayCollection grouping

I have an arrayCollection which I created dynamically like one at bottom: arrCol = ({"ID":ids[i][0], "Price":ids[i][1], "OtherInfo":ids[i][2]}); I want to group data and summarise Price by ID. If this ArrayCollection was a SQL table, I could use a…
0
votes
1 answer

Flex mobile list with large overhead datasets

I am having a problem where it is taking quite a long time to load a list with 100 entries. I am using a pregenerated arraycollection to pass to the data provider and a custom item renderer consists of nested containers. The moment I call this…
0
votes
1 answer

Array Collection: The mapping association are incosistent with each other

I have an User entity and a mission entity, that are associated In the profiler of symfony i get two errors. For the class Acme\ManagementBundle\Entity\User I get: The mappings Acme\ManagementBundle\Entity\User#missions and…
Gianni Alessandro
  • 860
  • 6
  • 11
  • 28
0
votes
1 answer

Call to undefined method, ArrayCollection

I'm new of Symfony, I made a web-application with it, in witch a User is in relation ManyToMany with an Entity "Mission". It doesn't work, because I get the error FatalErrorException: Error: Call to undefined method …
Gianni Alessandro
  • 860
  • 6
  • 11
  • 28
0
votes
1 answer

AS3 Databinding to Specific property at an index in ArrayCollection

I have a situation where I want to use databinding from an ArrayCollection to populate text fields in a Flex view. The ArrayCollection is populated from an SQL Result object. I store the ArrayColelction in my model class using getters and setters…
0
votes
1 answer

Flex Mobile actionscript how to alphabetically sort a arrayCollection by a portion of a object

I've got a query from a db that is returned as a ArrayCollection of Objects. I want to alphabetically sort by one property of the object. Coming back from the db.queryResults() the name of the property of the object is DmvValue3. How to I sort…
yams
  • 942
  • 6
  • 27
  • 60
0
votes
1 answer

Symfony2/Doctrine - Entity variable not returning an ArrayCollection object

I have used ArrayCollections in my last project, which worked fine. Now in my new project, I am attempting to implement one, and it does NOT work completely even though I have done the same thing in both projects. What works: I can add a new element…
0
votes
1 answer

Actionscript adding an element to object in arraycollection

How can I add an element to object in arraycollection? Example code: var mycollection:ArrayCollection = new ArrayCollection(); var myobject:Object=new Object(); myobject["label"]="My Label"; myobject["data"]="My…
user1995781
  • 19,085
  • 45
  • 135
  • 236
0
votes
1 answer

Flex export arraycollection to csv/excel

I have three advanced datagrid whose data I need to export to excel. I have merged the grid's data into a single arraycollection. Now I need to export that arraycollection to csv or excel format(.xlsx). The examples I found is all exporting datagrid…
0
votes
0 answers

Remove and Filter element In ArrayCollection Symfony 2

I have registered users in my application, when a user wants to unsubscribe or is locked in the database is marked as Locked ArrayCollection all need to be changed or do I have to make a new function for each ArrayCollection? for Example: this is…
Barno
  • 3,271
  • 5
  • 28
  • 58
0
votes
0 answers

arrayCollection In Javascript

i have this Action public function testAction($array){ /** * @var $array \Doctrine\Common\Collections\Collection */ return array( 'array_like' => $array->slice(0,5), ); } that i render in…
Barno
  • 3,271
  • 5
  • 28
  • 58
0
votes
1 answer

What is the most efficient way to store and update hierarchical data for a Flex AdvancedDataGrid?

I have a Flex application that has an AdvancedDataGrid that displays hierarchical data in a tree. I'm currently storing this data in XML and it's being updated about every second. This was working well for a while, but the amount of data I have to…