-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am working on a new flex application which on my stage is 2 DataGrids
separated by 2 buttons. One of hte buttons has an arrow pointing to the
right and the other button has an arrow pointing to the left. The
datagrid on the left hand side is populated via a Coldfusion CFC that
lists all of the Business within a 25 mile radius of a specific zipcode.
Now when I click on one of these businesses and click t he button with
the arrow pointing to the right, I am able to display the Business in
the Right datagrid with the following bit of code.
private function updateSchoolCorpNotify():ArrayCollection {
~ var arr:Array = [];
~
arr.push({Name:AvailableSchoolCorporations.selectedItem.Name,ID:AvailableSchoolCorporations.selectedItem.ID});
~ return new ArrayCollection(arr);
}
However when I select a second record from the left hand side, and click
the button, It overrites the first entry which I presume it will happen
because I am creating a new array each time the updateSchoolCorpNotify()
is being ran. I then tried to move the arr:Array outside of the function
with the line:
[Bindable] private or public var arr:Array;
however when I do this, then nothing is displayed in the right hand
datagrid. Can anyone shed some light on how this can be done.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH0EUN3GqPAgBSy90RAvOHAJ4pPaPFfqCGGset3wb1EHca0XitOQCghtIQ
nYlwaSn5KvPYnL3W8ruiFgY=
=RGWL
-----END PGP SIGNATURE-----
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5059
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37