Flex :: Populating An ArrayCollection Property Using (RemoteClass)

Jul 13, 2010

I am passing a complex object from my .NET library to my Flex application via WebOrb.In order to automatically translate, I am using the [RemoteClass] meta data tag as follows:[code]This works absolutely fine, until I try to extend the Plan class to contain an array of complex items:[code]but the set function never gets called.What can I do to get the children into my Flex app in this way?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Populating An ArrayCollection Property Using [RemoteClass]

Jul 13, 2010

I am passing a complex object from my .NET library to my Flex application via WebOrb. In order to automatically translate, I am using the [RemoteClass] meta data tag as follows:

ActionScript Code:
[RemoteClass(alias="test.PlanVO")]
public class Plan
{

[Code].....

but the set function never gets called.

What can I do to get the children into my Flex app in this way?

View 1 Replies

Flex :: Populating ArrayCollection With HTTPService?

Jul 14, 2009

I am creating a RSS Feed application based on a data, and I have the following:

I have an ArrayCollection that is pre-populated with data. I am sorting through the ArrayCollection, get 1 piece of data (condition), and need to connect to an RSS feed which returns me the title, and I set my ArrayCollection in correspondence to condition -> title.

public function updateArrayList(list:ArrayCollection):ArrayCollection {
trace(list);
for(var i:int = 0; i < list.length; i++) {
//Alert.show(list.getItemAt(i).condition);

[Code]....

View 1 Replies

ActionScript 3.0 :: Populating ArrayCollection Dynamically - No Values Found

Sep 6, 2009

When I tried to populate an arraycollection dynamically its saying no values found. Code that I used for this is given below:
[Bindable]
private var myARR:ArrayCollection=new ArrayCollection();
private function abc(){
var myStr:String="{year:'2004',Test1:10,Test2:20,Test3 :30}";
myArr.addItem(myStr);
}

View 0 Replies

Flex :: ArrayCollection Detecting Duplicates By Property Value?

Nov 19, 2010

I'm curious of the best way to detect that an arraycollection contains duplicate objects as determined by an object's property value. For example, var _myArrayCollection:ArrayCollection = new ArrayCollection([{name: "name1", value: "value1"}, {name: "name2", value: "value2"}, {name: "name1", value: "value3"}]);Notice that this arraycollection has 3 items. 2 of the items have the same value for the name property. I would consider this a duplicate. Any ideas what the body of this method would look like? I have ideas but none of them feel very elegant.

View 3 Replies

Flex :: Find An ArrayCollection Item With A Specific Property Value?

Oct 14, 2009

I have some XML structures like this:

var struct:XML = <mh>
<mi id="1" stuff="whatever"/>

[Code]....

I wonder if items can be accessed in a similar way, like this:

var stuff:Object = cmenu['id == 2'].stuff;

View 8 Replies

Actionscript 3 :: Watching An ArrayCollection's Length Property In Flex?

Nov 12, 2009

I would like to put an eventListener on an ArrayCollection's length proprety, but I don't know how to go about this.

I want to do this because I only want code to execute when a certain number of things are in a certain ArrayCollection. I want Flex to wait to execute this code over the next object until that length property drops back to an acceptable level. I think I should do this with events instead of a while loop that sits there spouting NOOPs forever (which I don't know how to do either).

View 2 Replies

Flex :: Mxml - Components Bound To Empty ArrayCollection At Load Time Don't Render As Expected When The ArrayCollection Is Updated?

Oct 27, 2009

I'm new to Flex and am using TileList bound to an ArrayCollection. The array collection is empty at load time, and then updates with the results from am HTTPService call. The problem is that the item renderers aren't being rendered as expected, I'm guessing because there was no data when they were first rendered at load time. Here's simplified example:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script>

[code].....

View 2 Replies

Flex :: Populating Tree Using Array

Sep 21, 2010

my required tree structure is as follows

[Code]...

where the component before / represents parent and the children of the corresponding parent are separated by , Can anyone provide me the logic to create a array collection for this hierarchy to set as dataprovider to my tree.

View 1 Replies

Actionscript 3 :: Populating Textbox Using Flex

Oct 31, 2010

In the below code.If buttom 'A' is pressed the text box should be populated with A, and if button 'B' is pressed it should be populated with B and so on..

s='A';
for(i=0;i<button.length;i++)
{
txtLogin.text+=s;

[Code]....

View 1 Replies

Php :: Populating Multiple Flex 4.5 ComboBoxes?

Oct 7, 2011

What is the best way to populate a multiple Comboboxes when using Flex 4.5 and PHP 5?

I am developing a Flex app that displays about 20 Comboboxes on the screen - each combo showing different data. I would like all of the comboboxes to be populated at once when the app starts. I used the default "Data/Service" wizard in Flex that automatically creates the PHP that returns an ArrayCollection to Flex. For example, below is the current PHP function I use that populates each ComboBox:

public function getListsByCODE($code) {
$stmt = mysqli_prepare($this->connection, "SELECT a.IDCODE, a.CODE, a.DESCR, a.NOTES FROM DROPDOWN_VW a WHERE (a.CODE = ?)");
$this->throwExceptionOnError();

[Code]....

View 1 Replies

Actionscript 3 :: Flex / Air / Selecting And Populating A UnFocused Tab

Apr 5, 2010

I'm having a problem displaying data from a function to text box within a tab. If you run the code and click "Select Tab 2 and Fill..." I get an error; "TypeError: Error #1009: Cannot access a property or method of a null object reference." I'm guessing this is because "Tab 2" is/was not rendered yet. Now if I run the code, select "Tab 2" then select "Tab 1" and click "Select Tab 2 and Fill..." it works the way I would like. Dose any one know a way around this problem.

[Code]...

View 1 Replies

Xml :: Populating A Datagrid In Flex With Content From A Feed

Sep 10, 2010

I have a datagrid:

<mx:DataGrid id="resultsDataGrid"
height="328" width="604" paddingRight="0" editable="false" y="43" horizontalCenter="0">

[Code]....

I only need the Title and Updated fields to actually be loaded into the DataGrid. This clearly doesn't work, (I think it's related to result.entry, that it must be something else like result.feed.entry, but I've tried a number of combinations and they haven't worked

View 1 Replies

Flash :: Flex AdvancedDataGrid Not Populating Properly?

Jan 11, 2012

I'm having trouble getting an AdvancedDataGrid to populate properly within an app I'm working on.If I use the sample code found on this page http:[url].... in it's own page everything works fine but if I copy this code into the page within my app that needs to have the grid the column headers/data are not populated.The page that needs the grid is displayed within a Spark NavigatorContent element, I'm not sure if this could somehow adversely effect the AdvancedDataGrid behaviour.I've even simplified the contained page to have just the sample code without anything else and it still does not work. info needed here,

EDIT: Some code sample from the project:

//Code from 'main page' containing the NavigatorContent
<mx:ViewStack id="viewstack1" cornerRadius="12" dropShadowVisible="false">
<s:NavigatorContent label="Matrix View" backgroundColor="#FFFFFF">[code]...............

View 1 Replies

Flex :: Populating Array Collection By Parsing String

Jul 26, 2010

In ActionScript I have string as
str="subject,r1,r2:a,b:1,2:3,4";
Dynamically I have split this string and build array collection as given below
arraycoll.addItem({subject:a ,r1:1,r2:3});
This example of one set. The array collection should be built dynamic. I have tried but not successful.

View 1 Replies

Actionscript 3 :: ArrayCollection Index Got Changed After Filter The Arraycollection?

Oct 7, 2011

I have a advanced datagrid and populating some data by using arraycollection. And i am filtering the arraycollection, the arraycollection index got changed.

Arraycollection:- [0] - name: abc
[1] - name: hello
[2] - name: hello1
[3] - name:hai

after filtering the arraycollection as 'hell' , the array collection is displaying like the below:

Arraycollection:-
[0] - name: hello1
[1] - name: hello

Can i know the reason why the index got changed after filter it?

* no server side code for filtering. it is only flex side filtering.

View 2 Replies

Flex :: Actionscript 3 - Populating A Datagrid With Variable Number Of Columns And Rows

May 17, 2010

I am trying to figure out how to manage a Datagrid based on an XML object like this:

[Code]...

I will need to populate the Datagrid column names based on a different XML object and use the above XML to populate each of the column's rows. I currently am able to create the Datagrid and populate its column headers but I am unsure as to how to how to add the rows for each column. The above XML will be update with new row and column elements added and deleted. This, of course, will be bound to the Datagrid to show updates.

View 2 Replies

Xml - Populating A Cell In A DataGrid With Multiple Values Separated By Commas - Flex?

Jun 28, 2011

I have an XML file with this data.

<resultSet>
<MerchandiseAssortmentCategory>
<merchandiseAssortmentCategoryId>275</merchandiseAssortmentCategoryId>
<merchandiseAssortmentCategoryName>D21 Plywood</merchandiseAssortmentCategoryName>
<merchandiseSubordinateClass>

[Code]...

When i run this, only the category name is filled. the subordinateclass number is just blank.

View 2 Replies

Flex :: Datagrid - ItemRenderer Flex Values Getting Not Rendered According To ArrayCollection Provider?

Feb 4, 2011

i have a problem using the itemRenderer functionality. When using an ArrayCollection the visible Data in the DataGrid using the itemRenderer will be rendered just fine. But if i start scrolling the entries are repeating in the cells using the renderer. The cells are not filled with date according to the id. What mistake i'm doing here.

I read a lot of the explainations like:

[URL]

here is the code for the set data function (itemRenderer is extending HBox):

override public function set data(value:Object):void {
_data = value;
if(data!=null)

[code]....

View 1 Replies

Flex :: ArrayCollection Versus Vector Objects In FLEX?

Apr 20, 2010

the applicable differences between an ArrayCollection and a Vector in flex? I'm unsure if I should be using one over the other. I saw that Vector is type safe and that makes me feel better, but are there disadvantages?

public var ac:ArrayCollection = new ArrayCollection();
versus
public var vec:Vector.<String> = new Vector.<String>();

View 4 Replies

Flex :: Changing Value Of DateField.text Property Setting SelectedDate Property To Null?

Jul 26, 2011

Setting the text property of a flex DateField makes the selectedDate property of that DateField go to null.I need to set the text property so that I can use a particular format (DD-MMM-YYYY).

View 2 Replies

Flex :: Binding - Bind Property Of View To Property Of Class Using MATE?

Jan 9, 2011

Lately i discovered MATE (for Flex development) and was wondering: how do i bind a property in a view (actually a navigatorcontent component) to another property in a class so that they stay in synchronization (meaning that whenever the property in the class changes the property in the view also changes).

So if we have a view called Target.mxml and a property targertProp how do we bind it to the class called SourceClass with property SourceProp?

View 3 Replies

Flex :: Convert ArrayCollection To XML?

Jul 24, 2009

In Flex, it's easy to convert the XML to Object and to ArrayCollection by using var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(); decoder.decodeXML( xml );

But is there a good way to convert ArrayCollection to XML.

View 3 Replies

Php :: Zend_AMF: Get A ArrayCollection From Flex?

Sep 22, 2009

I currently have an arrayCollection in Flex and I want to sent it to PHP (Zend_AMF). According to the Zend_AMF wiki, sending an arrayCollection over directly will force Zend_AMF to cast the arrayCollection as an object which is no good. I'd rather have an array of my models. I assume the best way would be to convert the arrayCollection to an array in flex and then send it over. Is this true, and if so how would I do that in Flex 3? If you have a better recommendation,

View 1 Replies

Flex :: Sorting An ArrayCollection?

Oct 21, 2009

Is there any way in Flex where in we can sort an arraycollection based on strings .I have a dataprovider with strings like "Critical" "High" "Medium" "Low" where in I need to sort it in such a way that I need Critical to be displayed on the top and next High , Medium and Low follows.

View 1 Replies

Flex :: Specify Size For An Arraycollection?

Mar 12, 2010

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.

Can I set the max size of the ArrayCollection? Will fixing the size improve the performance, as elements keep getting inserted into this collection?

View 1 Replies

Flex :: Use ArrayCollection In Flash CS5?

Dec 2, 2010

is there any way to use ArrayCollection (from mx.collections.*) in Flash CS3/4/5? How?

View 2 Replies

Flex :: ArrayCollection GetItemIndex Always -1

Mar 1, 2011

I have an ArrayCollection with data; a trace of random index of this using

[code]...

View 2 Replies

Flex :: Create Arraycollection With Different Name?

May 14, 2011

I would like to create a new AC instance with a dynamic variable which is nca1, nca2, etc. Without define using hardcode variable name, it is possible to do that in a loop?

View 1 Replies

Flex :: ArrayCollection Removing Sort?

Aug 3, 2009

After applying a numeric sort to my dataprovider(Array Collection), I can not reorder the items via a tilelist. Do I need to remove the sort from the arrayCollection. If so, is it just a case of setting collection.sort = null ?

var sortField:SortField=new SortField();
sortField.name="order";
sortField.numeric=true;
var sort:Sort=new Sort();
sort.fields=[sortField];

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved