[pyamf-users] GAE key() not send to Flex client

Marcel Overdijk marceloverdijk at hotmail.com
Sun Jun 8 13:21:35 CEST 2008


Below a small exmaple of using the GAE datastore to retrieve some records and sending them to Flex:     articleList = Artikel.all()     return ArrayCollection([article for article in articleList]) In flex I have setup the remoting service and displaying the records in a grid:         <mx:Panel title="Articles" width="100%" height="100%">                 <mx:DataGrid id="list" dataProvider="{articleService.list.lastResult}" width="100%" height="100%">                         <mx:columns>                                 <mx:DataGridColumn headerText="Code" dataField="description"/>                                 <mx:DataGridColumn headerText="Description" dataField="description"/>                                 <mx:DataGridColumn headerText="Price" dataField="price"/>                         </mx:columns>                 </mx:DataGrid>         </mx:Panel> GAE models get automatically a key assigned by GAE's datastore API. In my Flex app I need this key to to later updating records. By default the key is not send to the Flex client, perhaps because it's not a defined property in the model? Is there an easy workaround for this?I could of course create a VO - and store the key in it manually - but if possible I would like to avoid this. 
_________________________________________________________________
Instantly invite friends from Facebook and other social networks to join you on Windows Live™ Messenger.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pyamf.org/pipermail/users/attachments/20080608/063d2487/attachment.htm 


More information about the users mailing list