Hi,

Any idea for this bug. I didnot get any reply..

Pls help me out..

Thanks
Dharmendran A


----- Original Message ----
From: Dharmendran A <[EMAIL PROTECTED]>
To: flex coders <flexcoders@yahoogroups.com>
Sent: Wednesday, June 6, 2007 10:59:32 AM
Subject: Throwing DataSyncException Error - Flex Data Management


Hi,
 
I have built a sample .MXML application for testing Flex Data Management. In 
client iam using DataService to connect to the destination like, 
<mx:DataService id="ds" destination="crm.employee"/>
 
Iam able to view all the records using ds.fill(). Iam able to add a new 
employee record using addItem() of the ArrayCollection and by calling 
ds.commit()
 
I could see data synchronization happening in multiple clients.
 
Now, the problem is iam not able to modify or delete any record. Iam getting an 
error 
 
"Throwing DataSyncException when trying to update employee id=4"
"Throwing DataSyncException when trying to delete employee id=4"
 
The code looks like this:
    var emp:Employee=contacts.getItemAt(4) as Employee;
    ds.autoCommit=false;
    emp.firstName="Dharmendran";
    emp.lastName="Arumugam";
    ds.commit();

Pls help me.
 
Thanks,
Darmendran A
 
 
 



Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and 
lay it on us.


 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

Reply via email to