hook into post-commit

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DuckyDuck
Posts: 16
Joined: Mon 06 Apr 2009 07:58

hook into post-commit

Post by DuckyDuck » Sat 21 Aug 2010 01:29

I need to do some processing after any changes are committed

Is it possible to do this ?

I am using TOraSession and TOraQuery in my forms. I would like to avoid requiring using TOraQuery to do this because it is not defined at a high enough level in my form hierarchy. I have a TOraSession in my highesst level / parent form so I would ideally like to do something at that level.

What are my options ?

thanks

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Wed 25 Aug 2010 13:18

Hello

We don't have events that allow catching all commit to database. The reason is that this event will not be useful without the information about stored data, the table, where data is stored, and the column. But in many cases this information is inaccessible (if you save data by a SQL query or by a stored procedure). This information can be available if you post data by the Edit/Append/Insert/Post methods only. But in this case your dataset has event handlers (for example OnPost) to handle these events.

Post Reply