Thanks alot for your help. I think its resolved, however I still have some questions as to why.
In the cairngorm store model, they do things differently, calling an attribute they set in everything, called selectedItem. I changed that in my model to selectedShip, so I am not sure why it works in thier model, and not in mine. Also why do I have in the grid object a target.event.selectedItem value? That makes now sense. So literally what I have to do, (as I can now see tracking this with debugging) is, first set the selectedShip attribute equal to the event.target.selectedItem attribute, which frankly I have no idea where it even is coming from. Then selectedShip gets set to that, then without using a cairngorm event, (unlike the cairngorm store which uses and event and dispatcher to update the model) I instead, just in the click function update the model and set model.selectedShip = selectedShip (from the grid). If anyone can tell me where selectedItem is coming from, and why using the cairngorm event does not work I would appreciate it. What am I doing that different from the cairngorm 2 store model? Here is the functioning code: The body which imports the grid and details panel: <mx:VDividedBox x="0" y="0" height="415" width="978"> <ships:shipGrid id="ShipListDataGrid" ships="{ model.ships }" selectedShip="{ model.selectedShip }" select="model.selectedShip = event.target.selectedItem" /> <ships:shipDetails shipSelected="{model.selectedShip}" /> </mx:VDividedBox> The grid: <mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml" width="978" height="190" creationComplete="getShips()" dataProvider="{ ships }" change="updateSelectedShip( event );" dragEnabled="true" selectedIndex="0"> ... the function for the click event that fires the model update: public function updateSelectedShip( event : Event ) : void { selectedShip = event.target.selectedItem; model.selectedShip = selectedShip; } --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Monday 09 October 2006 13:47, laidezmon wrote: > > selectedShip="{ model.selectedShip }" > > Remove this from the ships:shipGrid tag, you are exporting it from the view, > not setting it. > > Change > <ships:shipDetails shipSelected="{model.selectedShip}" /> > to > <ships:shipDetails shipSelected="{ShipListData.selectedShip}" /> > > Hoes that ? > > if you really need the selected ship in the model, then set model.selectedShip > inside the click handler in shipGrid and bind as you have it. > > -- > Tom Chiverton > Helping to dramatically facilitate low-risk metrics > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/