Re: [flexcoders] Casting Problem.. Type Coercion Failed

2008-06-02 Thread Manu Dhanda
I am using the WebORB for PHP on my server side. There am doing a SELECT * query and am sending the returned results to Flex. How did you create the collection? Did you use AMF? Did you load from XML? I am using the RemoteObjects in here and configured the VO's at both ends. Somehow the objects

Re: [flexcoders] Casting Problem.. Type Coercion Failed

2008-06-02 Thread Manu Dhanda
while ($row = mysql_fetch_object($result, UserVO)) While your solution is very effective, still I noticed that the return array consists of only String types. Doesn't matter whether the field is of type date or int or anything.., it converts everything to string. So, on the Flex side, I need

[flexcoders] Casting Problem.. Type Coercion Failed

2008-06-01 Thread Manu Dhanda
Hii am writing a simple application where for logging in, am checking the values against the value objects contained in an ArrayCollection. While if((evt.userVO.email == ModelLocator.ALL_USERS[i].email) (evt.userVO.pwd == ModelLocator.ALL_USERS[i].pwd)) returns true, then why it throws this

Re: [flexcoders] Casting Problem.. Type Coercion Failed

2008-06-01 Thread Doug McCune
ALL_USERS isn't a collection of UserVO objects it seems. Looks like it's a collection of generic Objects. How did you create the collection? Did you use AMF? Did you load from XML? Somehow the objects that got created did not get created as the proper UserVO objects. So check the collection when