Print Thread
Refresh a single Record
#450 04/11/00 05:45 PM
Joined: Jan 2000
Posts: 9
France
C
cadotp Offline OP
Member
OP Offline
Member
C
Joined: Jan 2000
Posts: 9
France
Context: Windows 95b - Delphi4 UP3 - DOA 3.3.3 - Oracle 8.1.6

I use a dataset where SQL property is a SELECT on a view (VIEW1). My view VIEW1 is a SELECT on a table (TABLE1).
I have to update one record from table TABLE1.
So, I want to update my view VIEW1 too. But I want to refresh only the record which was updated. So I use 'Locate' property to find correct record and I use 'RefreshRecord' method. But this returns an exception : 'ORA-00942 : table or view does not exist'. I can't understand ! My dataset SQL property is well filled. Is it due to my view (which is not a table) ? Will it be better to use updatable view ? Is there a bug in RefreshRecord method ?

Any other ideas ?
Thanks a lot.

Re: Refresh a single Record
#451 04/11/00 07:16 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Set TOracleDataSet.Debug to True and see what select statement is executed. This should provide a clue.


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


Marco Kalter
Allround Automations
Re: Refresh a single Record
#452 04/11/00 09:36 PM
Joined: Jan 2000
Posts: 9
France
C
cadotp Offline OP
Member
OP Offline
Member
C
Joined: Jan 2000
Posts: 9
France
You're right (as usual)!!
This property (Debug) is absolutely marvellous !!

Explanation : 'UpdatingTable' property of my dataset was wrong (this property was filled a long time ago)!
This problem enables me to understand 'updatable view' principle and to use correctly 'UpdatingTable' property.

Thank's Marco to remind me of 'Debug' property.


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.032s Queries: 13 (0.010s) Memory: 2.5052 MB (Peak: 3.0426 MB) Data Comp: Off Server Time: 2024-05-17 03:25:05 UTC
Valid HTML 5 and Valid CSS