Subject Re: [IBO] Refresh current record only?
Author Jason Wharton
Yes, that is all it should do. The next time the record is read the dataset
will bring the fresh version of it from the server again. When coordinating
with cached updates it does get a little tricky. My intent is that it will
simply keep the changed record in the update buffer but if it is cancelled
then the new record from the server will be used, not until such a case.

This is based on the assumption that the update SQL will detect contention
if necessary. Otherwise I don't know how I will merge the record buffers in
the strange case changes are in the client and then changes from another
user are brought from the server.

How do you all think this should work? I'm open for suggestions.

Regards,
Jason Wharton
CPS - Computer Programming Solutions
Mesa Arizona
http://www.ibobjects.com

-- We may not have it all together --
-- But together we have it all --

----- Original Message -----
From: "manielsen2002" <mnielsen@...>
To: <IBObjects@yahoogroups.com>
Sent: Saturday, May 24, 2003 12:57 PM
Subject: Re: [IBO] Refresh current record only?


> How will the InvalidateBookmark work with IBOQuery and
> CachedUpdates? It seems to just remove the record from the dataset.
>
> Help please.
>
> --- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
> wrote:
> > > I think that calling MyIBOQuery.InvalidateRowNum
> (InternalDataset.RowNum)
> > > should cause a single-row refresh in the buffer. Try it and see
> what
> > > happens...
> >
> > Please don't encourage the use of InternalDataset for things of this
> > context. I can tolerate some usage for property settings that
> produce a
> > desired behavior but I don't like record level context stuff being
> messed
> > with.
> >
> > They can simply use the MyIBOQuery.RecNo or even better is they use
> bookmark
> > based operations.
> >
> > MyIBOQuery.InvalidateBookmark( AStoredBookmark );
> >
> > Regards,
> > Jason Wharton
> > CPS - Computer Programming Solutions
> > Mesa Arizona
> > http://www.ibobjects.com
> >
> > -- We may not have it all together --
> > -- But together we have it all --