Re: [flexcoders] Add an object via DataService.createItem() to a DataGrid

2006-09-27 Thread Benno Kittelmann
On 27/09/06, Jeff Vroom [EMAIL PROTECTED] wrote: But with integer ids if you call createItem twice in a row before committing you'll end up with two objects that have 0 as their id and that is considered an error. What I don't understand is why a single managed object instantiated via

Re: [flexcoders] Add an object via DataService.createItem() to a DataGrid

2006-09-27 Thread Benno Kittelmann
Addendum: Quoting myself... I haven't thought deeply about possible implications of this approach, as an alternative an annotation mechnism or some mapping files a la Hibernate come to my mind. Another approach would be to extend the configuration mechanism in data-management-config.xml.

RE: [flexcoders] Add an object via DataService.createItem() to a DataGrid

2006-09-27 Thread Jeff Vroom
: Re: [flexcoders] Add an object via DataService.createItem() to a DataGrid On 27/09/06, Jeff Vroom [EMAIL PROTECTED] wrote: But with integer ids if you call createItem twice in a row before committing you'll end up with two objects that have 0 as their id and that is considered an error. What I

[flexcoders] Add an object via DataService.createItem() to a DataGrid

2006-09-26 Thread Benno Kittelmann
Hello all, I have the following (simplified) setup: An ArrayCollection is bound to the dataProvider attribute of a DataGrid. The values of the ArrayCollection are loaded by a DataService during startup of the application. Additionally, there is a form which is used to create new managed objects.

RE: [flexcoders] Add an object via DataService.createItem() to a DataGrid

2006-09-26 Thread Jeff Vroom
. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benno Kittelmann Sent: Tuesday, September 26, 2006 6:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Add an object via DataService.createItem() to a DataGrid Hello all, I have