Subject RE: [IBO] refresh and bookmark problem
Author Laurent GILBERT
Hi,

I' using lversion 3.6i of IBO.


-----Message d'origine-----
De : Artur Anjos [mailto:arsoft@...]
Envoye : mer. 3 octobre 2001 20:26
A : IBObjects@yahoogroups.com
Objet : Re: [IBO] refresh and bookmark problem

Can you please tell us the version of IBO that you are using? I have a
problem with the first versions (don't remember the version) , but Jason
work on it and it's fine by now.

Artur Anjos


----- Original Message -----
From: Laurent GILBERT
To: IB_OBJECTS Support (E-mail)
Sent: Wednesday, October 03, 2001 2:44 PM
Subject: [IBO] refresh and bookmark problem



Hi all,

I've a little problem with bookmark and TIBOQuery.

I've two windows which contain a TIBOQuery on the same table.
I operate in the same transaction.

In first window, TIBOQuery has a filter on a single field.

In second window, I edit a record, modify a single field and post it
(CachedUpdates = false). This modification results in exclude the current
record of the filter in the first window.
After I call ApplyUpdates in second window, I do a refresh of the first
window.

I've a general purpose procedure :

procedure pu_ibrefresh(vaIBDataSet_ds : TIBODataSet);
var
vlBookMark_pos_courante : TBookMark;
begin
with vaIBDataSet_ds
do begin
try
vlBookMark_pos_courante := GetBookmark;
Refresh;
if BookmarkValid(vlBookMark_pos_courante)
then

GotoBookmark(vlBookMark_pos_courante);
finally
FreeBookmark(vlBookMark_pos_courante);
End;
end;
end;

I use Bookmark to keep current position if possible.

The problem is that an TdataSet error occurs : "RECORD NOT FOUND".

Stack view shows :

DatabaseError('Enregistrement non trouve') // Record not
found
TdataSet.Resync([rmExact.rmCenter])
TIBODataset. Resync([rmExact.rmCenter])
TdataSet.GotoBookmark(???)
Pu_refresh($1D11678)

Bookmark seems to be not valid even after its validation with
BookmarkValid.

If somebody gets an idea..

Regards,

Laurent GILBERT.







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


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



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




Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/