Print Thread
Record have been changed by another user
#3401 05/07/02 08:12 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
Hi FORUM!

When I try to edit a record the second time always EDatabaseError reports me with the message 'Record have been changed by another user'.

What's the problem please?

Thanks.



------------------

Re: Record have been changed by another user
#3402 05/07/02 10:31 PM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
This probably indicates that the table has some trigger or default column values. When a record is inserted or updated, one or more column values are modified on the server. When you edit it again, the dataset notices that the record in the dataset is different than the record in the database, and raises the exception.

To fix this problem, simply enable the RefreshOptions roAfterInsert and/or roAfterUpdate.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Record have been changed by another user
#3403 02/28/03 11:00 PM
Joined: Feb 2003
Posts: 2
BRAZIL
M
Member
Offline
Member
M
Joined: Feb 2003
Posts: 2
BRAZIL
I have this problem.
I'm using a TOracleDataSet (CacheUpdate = True) and retrive a set os rows. I have a loop in this OracleDataSet, who edit and post each row, in the second row, when I make the ApplyUpdate this error shows (Record has been chanhe by another user).
RefreshOption = [roBeforeEdit,roAfterInsert,roAfterUpdate,roAllFields]
How can I solve this problem ?

Re: Record have been changed by another user
#3404 03/03/03 11:10 PM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
What is the table definition(s) and the dataset's SQL?

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.207s Queries: 13 (0.078s) Memory: 2.5092 MB (Peak: 3.0430 MB) Data Comp: Off Server Time: 2024-05-20 08:33:42 UTC
Valid HTML 5 and Valid CSS