Hi,

I have a CFC which returns the results of a query, which returns the
user logging into a systems details. Then I want to bind these details
to a value object which I have added to a model object I have created.
So I have a model object and inside that I have a UserVO value object,
which looks like this:

[Bindable]
        public class UserVO
        {

                public var UserID:Number = 0;
                public var Title:String = "";
                public var Firstname:String = "";
                public var KnownAs:String = "";
                public var Lastname:String = "";
                public var DateOfBirth:String = "";
                public var Email:String = "";
                public var Password:String = "";
                public var Notes:String = "";
                public var UserType:String = "";
                public var DateCreated:Date = null;
                public var CreatedBy:String = "";
                public var Status:String = "";


                public function UserVO()
                {
                }

        }

I try to bind the results of my RemoteObject call, by using:

appModel.user.Firstname = e.result.Firstname;

But I keep getting error messages telling me that e.result does not
have a property called Firstname (or any of the other fields returned
by the query in the CFC).

I know my result is returned as a ArrayCollection, but how can I bind
that to a Value Object, which I'll then add to my model object so it
is available through out my application.

Stephen



Reply via email to