Subject Re: CachedUpdates
Author l_gilbert_fr
Hi Jason,

I made a little test application while I was waiting an answerÂ… :-)

I post it in few minutes.

Click on checkbox in order 1, 2, 3, and 4.
1: open database employee ; CachedUpdates is true for the table.
2: change the name of the first employee.
3: Call of CheckBrowseMode
4: Call of ApplyUpdates.

You can show transaction states at every steps : Transaction.Started, Transaction.InTransaction, and Transaction.TransactionIsActive.

All is working fine until step 4. When I call ApplyUpdates, the TransactionIsActive switch to false.

Regards,

Laurent.


--- In IBObjects@yahoogroups.com, "IBO Support List" <supportlist@...> wrote:
>
> Your description isn't sufficiently detailed for me to grasp what your
> problem is. Would you describe things in more detail please? Also, if
> possible, perhaps you could show me a sample app and then I can fix it more
> readily if I see what is wrong.
>
> Thanks,
> Jason
>
> -----Original Message-----
> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
> Of l_gilbert_fr
> Sent: 13 February 2012 02:22 PM
> To: IBObjects@yahoogroups.com
> Subject: [IBO] CachedUpdates
>
> Hi all,
>
> I found a little problem with my 10 years application since I switch to
> DELPHI XE and last version of IBO.
>
> I use DataSet.CachedUpdates in my work.
> I call DataSet.ApplyUpdates when I want to validate the modifications in the
> cache. (The modifications move from the cache to the 'transaction' level).
> This was working very well but now, when I call DataSet.ApplyUpdates the
> TransactionIsActive switch to false and then I can't know if I must commit
> the transaction in an upper level of my application.
>
> I don't see why it's not working anymore...
>
> Regards,
>
> Laurent.
>