Print Thread
Overriding default insert/update/delete mechanism
#761 08/11/00 03:33 PM
Joined: Aug 2000
Posts: 3
Jyv
R
Risto Offline OP
Member
OP Offline
Member
R
Joined: Aug 2000
Posts: 3
Jyv
TQuery class has a member variable UpdateObject of type TUpdateSQL. I can use it for updating otherwise unupdateable queries when cached updates are enabled. Is there such mechanism in DOA so that I could provide my own database procedure calls which would be used for insert, update and delete operations on a recordset?

Re: Overriding default insert/update/delete mechanism
#762 08/11/00 06:50 PM
Joined: Aug 1999
Posts: 22,207
Member
Offline
Member
Joined: Aug 1999
Posts: 22,207
You can use the OnApplyRecord event for this, and the methods that support this event (SetQueryVariables, GetQueryVariables). The PkgApply example project demonstrates this. It takes a cursor result set from a package, and inserts, updates, and deletes records through program units in the same package.

------------------
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.064s Queries: 14 (0.041s) Memory: 2.4959 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-05-01 11:28:45 UTC
Valid HTML 5 and Valid CSS