As the fill response is being read from the server, data management is populating your value objects by calling the "set" methods. Most likely one of those is doing something that sends a property change event for some object which is already managed.
The client debug log would probably provide the best clue - if you add <mx:TraceTarget/> you'll see what is happening after the fill response is received. All PropertyChangeEvents that are received by the client are logged. We also log messages each time a new change is put into the log to be committed. The other clue is to look at what changes get committed when you do press commit - looking at the client or server debug logs for that would tell you which objects are being modified. A good rule of thumb is to not put too much logic into your set methods - particularly avoid things that have side effects. Jeff From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of uiowaflex Sent: Friday, November 07, 2008 12:02 PM To: [email protected] Subject: [flexcoders] commitRequired returns true from DataService.fill() Hi We are having a number of issues with our Flex project (using LiveCycle Data Services 2.5) and are trying to address them one by one from the beginning to iron them out. There may be something fundamental about our approach that we need to change. The first issue is that the initial fills that we perform all come back successful, but commitRequired is set to true for 2 of the 3 fills. We have to issue a commit to reset it...it seems like this shouldn't be necessary and understanding what is going on here could help us with our other issues. Has anyone encountered this kind of behavior before? The ArrayCollections filled are bound to user interface elements. We can provide more info on the database schema and such if that might be a factor. Any help would be appreciated. We have expertise in our team in the Java/hibernate side and Flash/actionscrip, but our understanding of the details of the Data Services is where we are less experienced. thanks, --Derek U. of Iowa
<<inline: image001.jpg>>
<<inline: image002.jpg>>

