Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

tptackab
Community profile tptackab Level 1
Job title here
Location here
0 BADGES
Level 1

Level 1

Learn more
Joined the community 07-06-2004 5:11:35 PM
Offline
Top badges earned by tptackab
Customize the badges you want to showcase on your profile
List<MyType> to ArrayCollection of MyType instances?
Avatar
Level 1
tptackab
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
tptackab
- Adobe LiveCycle
Ok, it's starting to get clearer. Apparently one mustexplicitly include a reference to the typed object class held inthe ArrayCollection for Flex to properly cast the objects.For example, here's my handler:public function loadProfileHandler(event:ResultEvent):void{var accountProfile:AccountProfileDTO = event.result asAccountProfileDTO;for each(var userMed:UserMedication inaccountProfile.userMedications){trace(userMed.medication);}trace(accountProfile.userMedications);}If I comment out the "for e...

Views

74

Likes

0

Replies

0
List<MyType> to ArrayCollection of MyType instances?
Avatar
Level 1
tptackab
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
tptackab
- Adobe LiveCycle
Hi,Is it possible to have a generically typed List(e.g.List) instance variable on my object serialized to anArrayCollection ofMyType objects in the corresponding AS object? I've struggledfor dayson this and would greatly appreciate if anyone could tell meif it ispossible.For example, I have a Java DTO object (AccountProfileDTO)thatassembles various objects related to a user for transfer totheclient (see code below). In Flex, I call a remote Java methodthatreturns an AccountProfileDTO object. The...

Views

639

Likes

0

Replies

1