Why deDataSetScroll not raised on TOraQuery.Locate ?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cemick
Posts: 13
Joined: Wed 08 Oct 2008 11:32

Why deDataSetScroll not raised on TOraQuery.Locate ?

Post by cemick » Wed 16 Sep 2015 16:09

Turns out there is no way to know about changing the current record in dataset.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Why deDataSetScroll not raised on TOraQuery.Locate ?

Post by AlexP » Thu 17 Sep 2015 04:10

Hello,

Please describe in more details the problems you have faced with when using the Locate method - and we will try to help you solve them.

cemick
Posts: 13
Joined: Wed 08 Oct 2008 11:32

Re: Why deDataSetScroll not raised on TOraQuery.Locate ?

Post by cemick » Thu 17 Sep 2015 12:39

I have prepared an example. If you click the mouse on the recording in the grid, or use a next, prior in the DBNavigator, then the event deDataSetScroll comes. If you do locate it, the event never comes. There is a more General deDataSetChange event's. But it is too General.

https://onedrive.live.com/redir?resid=D ... file%2czip

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Why deDataSetScroll not raised on TOraQuery.Locate ?

Post by AlexP » Thu 17 Sep 2015 13:23

This is the standard behavior of the Locate method (you can compare with other data access components). When navigating through the DataSet, the MoveBy method is called. In it, deDataSetScroll is called. When using the Locate method, there are BookMarks used, which don't cause such behavior.

Post Reply