Page 1 of 1

Why deDataSetScroll not raised on TOraQuery.Locate ?

Posted: Wed 16 Sep 2015 16:09
by cemick
Turns out there is no way to know about changing the current record in dataset.

Re: Why deDataSetScroll not raised on TOraQuery.Locate ?

Posted: Thu 17 Sep 2015 04:10
by AlexP
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.

Re: Why deDataSetScroll not raised on TOraQuery.Locate ?

Posted: Thu 17 Sep 2015 12:39
by cemick
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

Re: Why deDataSetScroll not raised on TOraQuery.Locate ?

Posted: Thu 17 Sep 2015 13:23
by AlexP
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.