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

Flex mobile ArrayCollection Error

I am trying to develop a mobile based flex application. In my application, I have two views. I am trying to pass the ArrayCollection as a data from one view to another view, but while trying to access ArrayCollection on the second view, I am getting…
tomjerry
  • 105
  • 1
  • 3
  • 13
-1
votes
3 answers

How to create an ArrayCollection of Objects?

I new to flex, I have a class shown below: public class Items extends Object { public function Items(){ super(); } public var name:String; public var count:int; } How do I create an ArrayCollection of type Items? Thanks.
-1
votes
1 answer

How can I get data from my ArrayCollection?

I am trying to load data from my array collection via doctrine: $pages = $this->em->getRepository(Pages::class)->findAll(); The result is: 2 => Pages^ {#1598 ▼ -id: 3 -name: "cat" -membergroup: PersistentCollection^ {#1603 ▼ -snapshot: [] …
peace_love
  • 6,229
  • 11
  • 69
  • 157
-1
votes
1 answer

symfony 4 form with multiple arrayCollection

well, every user has multiple sports so i have created table users and table sports and table usersport so i want that the user select multiple sport and store it in table user sport user entity arrayCollection /** *…
-1
votes
1 answer

How can I display elements of my ArrayCollection working with joined Tables and ManyToMany relations?

In my entity documents I have a field called linkedDocuments: class Documents { /** * @ORM\ManyToMany(targetEntity="App\Entity\Documents") * @ORM\JoinTable(name="documents_documents", * joinColumns={@JoinColumn(name="link_origin",…
peace_love
  • 6,229
  • 11
  • 69
  • 157
-1
votes
1 answer

How can I retrieve data from ArrayCollection (Symfony)?

animals: | id | name | |----|------| | 1 | cat | | 2 | dog | | 3 | frog | category: | id | name | |----|--------| | 1 | green | | 2 | blue | | 3 | orange | animals_category: | animals_id | category_id | |------------|-------------| |…
peace_love
  • 6,229
  • 11
  • 69
  • 157
-1
votes
1 answer

Remove duplicate values from arraycollection in flex4

This is my arraycollection o = JSON.parse(event.result.toString()); jsonarray = new ArrayCollection(o as Array); in this array i have a duplicate values of product name, so i wants to remove duplicacy.\ my code is here,its not working please let…
sahil garg
  • 21
  • 2
-1
votes
1 answer

Sort ArrayCollection using compareFunction

using Flash Builder 4.6 i want to sort an arrayCollection. the array has 2 properties status, and help_id. I want to sort the array to have all "open" statuses at the top, than all the "read", than "onsite", than "complete", and so on. i made a…
-2
votes
3 answers

Update doctrine entity with ArrayCollection field

I have problem with update entity with relations (one to many, many to one). I trying to add some new element to ArrayCollection when update, but nothing to do. Here is my code of create and add relation: $auctionPhoto = new…
Jacek
  • 33
  • 2
  • 8
-3
votes
2 answers

How can I store data in Array Collection with doctrine (Symfony 4)?

My controller: /** * @Route("/row/{slug}/{connect}/{field}/{productgroup}", name="row", methods={"POST"}) */ public function row($slug, $connect, $field,$productgroup, Request $request) { …
peace_love
  • 6,229
  • 11
  • 69
  • 157
1 2 3
22
23