Hi, Thanks for answering, this is driving me crazy. No, no lazy references:
<hibernate-mapping default-lazy="false"> Perhaps I'm trying to make this simpler than it is, but this is how I understand it. Books.mxml: <?xml version='1.0' encoding='iso-8859-1'?> <mx:Application xmlns:mx='http://www.adobe.com/2006/mxml' xmlns='*'> <mx:Script> import mx.data.DataService; import mx.collections.ArrayCollection; import model.*; public var ds : DataService = new DataService( "BookDestination" ); [Bindable] public var book : Book = new Book(); [Bindable] public var books : ArrayCollection = new ArrayCollection(); [Bindable] public var chapter : Chapter = new Chapter(); </mx:Script> <mx:VBox width='100%' height='100%'> <mx:HBox width='100%'> <mx:ControlBar> <mx:Button label='Subir' click="" icon="@Embed(source='images/data_up.png')"/> <mx:Button label='Bajar' click="" icon="@Embed(source='images/data_down.png')"/> </mx:ControlBar> <mx:Spacer width='100%' height='100%'/> <mx:ControlBar> <mx:Button label='Obtener' click="ds.fill( books );" icon="@Embed(source='images/data_refresh.png')"/> <mx:Button label='AƱadir' click="book = new Book(); ds.createItem( book );" icon="@Embed(source='images/data_add.png')"/> <mx:Button label='Borrar' click="books.removeItemAt( dgBooks.selectedIndex );" icon="@Embed(source='images/data_delete.png')"/> <mx:Button label='Guardar' click="if( ds.commitRequired ) ds.commit();" icon="@Embed(source='images/data_disk.png')"/> </mx:ControlBar> </mx:HBox> <mx:HDividedBox width='100%' height='100%'> <mx:Tree width='25%' height='100%'> </mx:Tree> <mx:VBox width='75%' height='100%'> <mx:TabNavigator width='100%' height='100%'> <mx:Canvas label='Books' width='100%' height='100%'> <mx:VBox width='100%' height='100%'> <mx:Label text="Books"/> <mx:DataGrid id="dgBooks" dataProvider="{books}" editable="true"> <mx:columns> <mx:DataGridColumn headerText='ID' dataField='id' editable='false'/> <mx:DataGridColumn headerText='Library' dataField='library' editable='false'/> <mx:DataGridColumn headerText='Description' dataField='description'/> <mx:DataGridColumn headerText='Date' dataField='date'/> </mx:columns> </mx:DataGrid> <mx:Label text="Chapters"/> <mx:DataGrid id="dgChapters" dataProvider="{dgBooks.selectedItem.chapters}" editable="true"> <mx:columns> <mx:DataGridColumn headerText='ID' dataField='id' editable='false'/> <mx:DataGridColumn headerText='Book' dataField='book' editable='false'/> <mx:DataGridColumn headerText='Description' dataField='description'/> <mx:DataGridColumn headerText='Amount' dataField='amount'/> </mx:columns> </mx:DataGrid> </mx:VBox> </mx:Canvas> </mx:TabNavigator> </mx:VBox> </mx:HDividedBox> <mx:Label text='Ready' width='100%'/> </mx:VBox> </mx:Application> Any suggestion?, something?. Thanks in advance, Pepe. --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > Did you have any lazy references set up in the mappings? > -- 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/ <*> 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/