Subject Re: [IBO] Re: Synchronising TIBOQueries
Author Helen Borrie
At 11:27 AM 28/03/2006, you wrote:
>--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
> >
> > At 10:08 AM 28/03/2006, you wrote:
> > >Hello,
> > >
> > > I have 2 TIBOQueries which both have the exact same number of
> > >records and the same key-values for each record. (and even ordered the
> > >same).
> > >
> > > I want to synchronise them so that when a user clicks on a record in
> > >my DevExpress grid, that the identical record in the other TIBOQuery
> > >is also focused/selected.
> >
> > Use bookmarks?
> >
> > But why do you need two IBOQueries, out of interest?
> >
> > Helen
> >
>
>Helen... thanks for the reply.
>
>We need 2 IBOQueries since the 2nd table is filled-in optionally only
>if an user requests a particular option.

You said:
> >I have 2 TIBOQueries which both have the exact same number of
> >records and the same key-values for each record. (and even ordered the
> >same).

So if that *is* the case, you only need one set + one datasource and
you can put whatever you want into 2 grids, or into a grid with a
one-record layout alongside.


>I tried (C++):
> qrLenderProd->InternalDataset->Bookmark =
>qrLenderCost->InternalDataset->Bookmark;
>
>...but this did not change the selected row of the 1st TIBOQuery
>dataset (qrLenderProd).

Oh, I meant using the TDataset Bookmark mechanisms. You can find
examples in the Delphi Help..probably also in the Builder Help.

Helen