current Record after insert/post of SmartQuery

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mxwx
Posts: 25
Joined: Mon 14 Nov 2005 08:22

current Record after insert/post of SmartQuery

Post by mxwx » Fri 27 Jul 2007 10:52

Hi,

I have expected that when I insert a record to a table the corresponding component(s) will automatically puts the cursor to this record. I have a SmartQuery to which I insert a new record and finally post this record. What do I have to do that the SmartQuery is pointing to the currently inserted record after the post. As of now the SmartQuery points to the record that is selected before the insert. I have tried any combination of the RefreshOptions and the FullRefresh too.

Thanks in advance

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 27 Jul 2007 11:16

We could not reproduce the problem. Please send to odac*crlab*com a complete small sample that demonstrates the problem, including script to create server objects.
Also supply us the following information
- exact version of ODAC including build number (see Oracle | About ODAC in the IDE menu);
- exact version of Delphi.

FanderlF
Posts: 17
Joined: Thu 21 Dec 2006 13:43

Post by FanderlF » Mon 30 Jul 2007 06:39

Hm :) You could just save your primary key before insert/adding a new dataset and relocate the old dataset via the Locate function.

Post Reply