Subject | Re: [IBO] How to retain iboControl values after rollback? |
---|---|
Author | Michael Fung <ibo@cmsweb.com> |
Post date | 2003-02-07T14:26:13Z |
--- In IBObjects@yahoogroups.com, Lucas Franzen <luc@r...> wrote:
How about the user corrects some entry and post again? Without the
rollback, I thought the previous partial updates will be saved
together with this successful post.
Rgds,
Michael
>the
>
> No, you don't have to roll it back.
>
> Example:
>
> procedure SaveData;
> begin
> with qry do
> begin
> try
> POST; (1)
> IB_Transaction.Commit; (2)
> except
> end;
> end;
> end;
>
> When you post your query (1) the data is sent to the server, thus
> triggers will be executed. Since one of them fails the post willfail,
> too, thus your query will REMAIN in mode dssInsert or dssEdit andthe
> IB_Transaction.Commit (2) won't be executed, since the post (1) willLuc,
> cause the exception.
>
How about the user corrects some entry and post again? Without the
rollback, I thought the previous partial updates will be saved
together with this successful post.
Rgds,
Michael