So, I've got an
ArrayCollection and a defined value object. The ArrayCollection has just one
record in it, and the data matches the valueObject perfectly. Here's my
code:
If I do this,
everything works:
model.currentUser.userID =
loginResult.getItemAt(0).userID;
model.currentUser.username = loginResult.getItemAt(0).username;
model.currentUser.name = loginResult.getItemAt(0).name;
model.currentUser.email = loginResult.getItemAt(0).email;
model.currentUser.city = loginResult.getItemAt(0).city;
model.currentUser.state = loginResult.getItemAt(0).state;
model.currentUser.country = loginResult.getItemAt(0).country;
model.currentUser.approved = loginResult.getItemAt(0).approved;
model.currentUser.lastLogin = loginResult.getItemAt(0).lastLogin;
model.currentUser.createDate = loginResult.getItemAt(0).createDate;
model.currentUser.username = loginResult.getItemAt(0).username;
model.currentUser.name = loginResult.getItemAt(0).name;
model.currentUser.email = loginResult.getItemAt(0).email;
model.currentUser.city = loginResult.getItemAt(0).city;
model.currentUser.state = loginResult.getItemAt(0).state;
model.currentUser.country = loginResult.getItemAt(0).country;
model.currentUser.approved = loginResult.getItemAt(0).approved;
model.currentUser.lastLogin = loginResult.getItemAt(0).lastLogin;
model.currentUser.createDate = loginResult.getItemAt(0).createDate;
If I do EITHER OF
THESE (not all at once), model.currentUser remains NULL:
1 model.currentUser = loginResult.getItemAt(0) as
user;
2 model.currentUser = loginResult as user;
2 model.currentUser = loginResult as user;
Any ideas what I'm
doing wrong?
Shan
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 7/4/2006

