Board index » delphi » Refresh with Delphi

Refresh with Delphi

Delphi 2.0
Oracle server

After an Insert in a TTable, a Table.Refresh may display 2 inserted records
(instead of 1) in the DBGrid. I replaced the Refresh with
        Table.Close;
        Table.Open;
but the activated record becomes the first in the table an not the inserted
one.

Does any body have the solution?

Thanks for your help

Willy.Port...@delta-technologies.fr

 

Re:Refresh with Delphi


After each INSERT in a TTable, you must use a POST method.

Ismael

On 6 Mar 1998 10:53:08 GMT, "Willy Portier"

Quote
<willy.port...@delta-technologies.fr> wrote:
>Delphi 2.0
>Oracle server

>After an Insert in a TTable, a Table.Refresh may display 2 inserted records
>(instead of 1) in the DBGrid. I replaced the Refresh with
>    Table.Close;
>    Table.Open;
>but the activated record becomes the first in the table an not the inserted
>one.

>Does any body have the solution?

>Thanks for your help

>Willy.Port...@delta-technologies.fr

Re:Refresh with Delphi


Table.Locate after the open based on unique values of the inserted record
--
Remove NOSPAM. from email

Willy Portier <willy.port...@delta-technologies.fr> wrote in article
<01bd48ee$ec8c83d0$ec00a8c0@magnum-1>...

Quote
> Delphi 2.0
> Oracle server

> After an Insert in a TTable, a Table.Refresh may display 2 inserted
records
> (instead of 1) in the DBGrid. I replaced the Refresh with
>    Table.Close;
>    Table.Open;
> but the activated record becomes the first in the table an not the
inserted
> one.

> Does any body have the solution?

> Thanks for your help

> Willy.Port...@delta-technologies.fr

Other Threads