Hi,

I need a little help:

I have a remoteobject which returns an array of Value Objects. The 
value object contains two ints (numbers) and a string. I want to 
display this on a datagrid. How do I convert this array into 
something that I can use?

 I have created an actionscript class (testVO.as) which mirrors the 
java Class testVO so I think I'm going in the right direction, now 
all I need to do is iterate through the array (remoteObject.result, 
which is where I am stuck (my actionscript is obviously a bit rusty).

Cheers

Java:

public class TestVO {
        public String name;
        public int total;
        public int today;
        
        public void setName(String name){
                this.name = name;
        }
        public void setToday(int today){
                this.today = today;
        }
        public void setTotal(int total){
                this.total = total;
        }
        public String getName(){
                return this.name;
        }
        public float getTotal(){
                return this.total;
        }
        public float getToday(){
                return this.today;
        }
}

ActionScript:

public class TestVO {
        var name:String;
        var total:Number;
        var today:Number;
        
        public void setName(name:String){
                this.name = name;
        }
        public void setToday(today:Number){
                this.today = today;
        }
        public void setTotal(total:Number){
                this.total = total;
        }
        public String getName(){
                return this.name;
        }
        public float getTotal(){
                return this.total;
        }
        public float getToday(){
                return this.today;
        }
}





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to