Hi,
 
I use LCDS, but I dont have the data hierarchy you are mentioning here. But in 
order to help u debug the issue you might want to turn on debugging while 
developing to see what Flex is doing on the client and server-side, here is how 
to do that:
 
- on client side, add the following statement somewhere in your root MXML file: 
<mx:TraceTarget/>  ... this will log to your client flashlog.txt file
- on the server-side in the services-config.xml file, set the log level to 
"Debug" and make sure the EndPoint.* and Message.* are set
 
That way you will be able to see what data is going back and forth and if on 
the client side Flex is noticing the change to your object.
 
Also who many destinations have u configured? only one for collectionA? or one 
for each collection?
I think you may need to do some kind of refresh ont he server-side once an 
object in collectionA is committed, look at the employee/company in the LCDS 
samples.
 
Dimitrios Gianninas
Development Team Lead
Optimal Payments Inc.
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua 
Garnett
Sent: Thursday, October 18, 2007 9:54 AM
To: [email protected]
Subject: [flexcoders] LCDS/Hibernate DataServices Issue



Hello,

We've recently encountered a problem on a project I'm working on.  We are using 
the Data Management Services to managed all of our persisted objects.  It 
connects to our database via a customized Hibernate assembler.  The issue we 
are seeing is that we have a series of collections that point to each other and 
the references aren't being maintained properly throughout the system. 

Example:

Each item in collectiona, has two properties collectionb and collectionc.
The items in collectionc have a reference to an item in collectionb.

var itemB:Object = collectionb.getItemAt(0); 
var refItemB:object = collectionc.getItemAt(0).referenceToB;
itemB.id == refItemB.id

If at this point I make a change to itemB the corresponding object refItemB is 
not changed.  They are identical objects on the server and should always be the 
same on the client.  I can refresh my client and the differences in the objects 
are still present.  It is not until I close the session and re-login that 
refItemB is updated properly. 

Any thoughts on what we might be doing wrong or need to adjust?  Thanks,


--Josh











 

-- 
WARNING
-------
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

Reply via email to