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
2 answers

Appcelerator Titanium dynamically populate optionDialog

I'm new to Titanium so maybe my question is a newbie one, but I'm trying to dynamically populate an option Dialog (use Alloy framework). Is it possible to create a new ArrayCollection and pass it to my optionDialog like this :
1
vote
2 answers

Doctrine where clause with an array

I have an entity called "invoice" with many "subscription" such that "invoice" and "subscription" are in a many to many relationship. class Invoice { /** * @ORM\Column(type="integer") */ protected $a; /** * @ORM\Column(type="integer") …
No_name
  • 2,732
  • 3
  • 32
  • 48
1
vote
1 answer

Flex AdvancedDataGrid AdvancedDataGridRendererProvider childrenField ArrayCollection - Question about behaviour

I have a main class ClassA that has a bunch of "normal" properties that are simple datatype like ints, strings, etc. It also has one property ("childItems") that is an ArrayCollection of ClassB. I am using an ArrayCollection of ClassA as the source…
Wolfgang
  • 11
  • 4
1
vote
1 answer

Flex XML dynamic type

I have an application which receives dynamic XML data from a server. The structure of the XML is dynamic and the tags/attribute names cannot be predicted. NO row items can be hardcoded. The data is coming back from a database (imagine columns and…
DoorMat
  • 93
  • 4
1
vote
1 answer

Twig extension for sorting Doctrine ArrayCollection

I'm trying to write a Twig filter to be able to sort a Doctrine ArrayCollection, but the returned array is not sorted :( Can you please help me to fix this: class SortExtension extends \Twig_Extension { public function getFilters() { …
Faery
  • 4,552
  • 10
  • 50
  • 92
1
vote
2 answers

Search a value in Flex Array Collection

Is there a way to pass a value to a flex ArrayCollection and check whether it exists there or not. I mean, I want to insert values to a Flex Array but before that, i need to check if it already exists or not. Let me know if we can do this without…
sher17
  • 607
  • 1
  • 12
  • 31
1
vote
2 answers

delete an object stored in several ArrayCollections

I have several arraycollections (I don't know their number in advance) which contain one same object (among others). var obj:MyObject = new MyObject(); var arc1:ArrayCollection = new ArrayCollection(); arc1.addItem(obj) // same operation for my x…
tomy29
  • 11
  • 1
1
vote
2 answers

Reverse order of bars in a Flex BarChart

I'm trying to use a BarChart in Flex. I'd like it to order the bars according to the order of the ArrayCollection I fed it. i.e. data at index 0 should be the first bar on top. However, Flex is giving me the exact reverse order. i.e. data at index 0…
tomato
  • 5,644
  • 13
  • 43
  • 48
1
vote
1 answer

Assigning arraycollection in component as dataprovider for datagrid in main app

Hi I have a simple (I think) question. I have the following custom component in Flex 4.6 (partial code).
1
vote
1 answer

Drag drop data between 2 advancedDataGrid and clone instance

I have 2 advanceddatagrid with dataprovider based on an arraycollection of an instanciated actionscript class. I want to copy and duplicate data from the datagrid1 to the datagrid2... For duplicate data it works fine, no problems .... but when I…
1
vote
2 answers

flex 4 tree control not updating

I'm using the MX Tree control in Flex 4.6. Its data provider is a nested ArrayCollection. The way the control works is that when a tree node is expanded the event is bubbled up to another component which detect the event and fetches data from the…
Code Robot
  • 21
  • 4
1
vote
2 answers

How to sort an ArrayCollection by values

I have a list of items in an ArrayCollection that I'd like sorted by a certain value (not alphabetical). Is it possible to sort this way? Here are the values I want to be ordered by: Resolved Closed Open …
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
1
vote
1 answer

How to transpose data in Flex dataGrid

I have an arrayCollection with 3 columns as such: Col1 Col2 Col3 a 1 X b 2 Y c 3 Z d 4 W I want to tranpose this set of data and display it in Flex DataGrid. I have got till here with my function…
FlexyBoz
  • 195
  • 18
1
vote
1 answer

Twig - display a property inside an entity item

I have an entity that has an items property that is an array of item entities. the item entity has id and name properties. what I want to do is to get entity.items and display all name properties, separated by commas. the way I have it now: …
Heitor
  • 145
  • 2
  • 11
1
vote
0 answers

Flex big data volume performance (ADEP/LCDS dataservice)

As we have found a solution for Hibernate, server side loads the data very fast : less than a sec for thousands of records and more. Now the problem is on transporting data from server to browser. Two issue: 1.The datagrid always waits until the…
Phung D. An
  • 2,402
  • 1
  • 22
  • 23