Subject RE: [IBO] IB_Query going into Search mode after post
Author Kevin Curtis
I changed the call to CommitRetaining and it seems to have fixed the
problem. I'll go ahead and try caRefresh and see if it prevents Commit from
causing the Query to enter into Search mode.


-----Original Message-----
From: Claudio Valderrama C. [mailto:cvalde@...]
Sent: Saturday, February 03, 2001 2:23 AM
Subject: RE: [IBO] IB_Query going into Search mode after post

Commit closes the datasets associated to that transaction, so they go into
search mode. You will want to fiddle with
TIB_Dataset's CommitAction whose enumeration is TIB_CommitAction:
caClose, caInvalidateCursor, caRefresh, caFetchAll.

If you don't want to call Commit, you'll want to let IBO handle
behind the scenes.


> -----Original Message-----
> From: Kevin Curtis [mailto:Kevin@...]
> Sent: Sábado 3 de Febrero de 2001 0:53
> Jason,
> I tracked the problem down to this:
> procedure TDataModule1.qrClientsAfterPost(IB_Dataset: TIB_Dataset);
> begin
> if IB_Dataset.IB_Transaction.Started then
> IB_Dataset.IB_Transaction.Commit;
> end;
> If I comment out the two lines in the above function then my dataset
> NOT go into search mode.
> Any idea as to why this would make the dataset enter into search mode?
> Thanks!
> Kevin

Yahoo! Groups Sponsor


[Non-text portions of this message have been removed]