What type of objects are in your grid's dataprovider? Are the items in
the grid actual TrackVo objects (and were typed as such prior to being
added to the dataprovider)?

 

Karl

Cynergy

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Webdevotion
Sent: Tuesday, February 27, 2007 6:22 PM
To: [email protected]
Subject: [flexcoders] assigning a value to a model value object

 

Hello,

I want to assign a value from my libraryview's datagrid to
a TrackVO in my modelLocator.

model.currentTrack = gridlist.selectedItem as TrackVO;

However, this will not work, currentTrack is null. 
When I do Alert.show( gridlist.selectedItem.file ) it shows
me the correct output.

What is the correct way to put the gridlist.selectedItem data
in a value object of my modellocator, so I can keep my data 
wellformed.

tnx.

 

Reply via email to