Subject | Re: [IBO] refresh and bookmark problem |
---|---|
Author | Jason Wharton |
Post date | 2001-10-04T15:44:33Z |
You probably need to upgrade to IBO version 4. New development surrounded
improvements in that area.
IOW. I probably won't address this issue in IBO version 3.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
improvements in that area.
IOW. I probably won't address this issue in IBO version 3.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
----- Original Message -----
From: "Laurent GILBERT" <laurent.gilbert@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, October 03, 2001 10:53 PM
Subject: RE: [IBO] refresh and bookmark problem
> 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.