Subject | Efficient way to select a certain record |
---|---|
Author | Christian Gütter |
Post date | 2002-07-03T13:35:31Z |
Hi,
I have got the following problem:
my users have to select a record from an IB_Grid
(which is connected to an IB_Query).
Then they click a button and a new window with a
new query and a new grid opens. This grid should
automatically select the same record which was
select by the user in the first grid.
My question is how to accomplish this. The first
thing which I thought of was to read the primary
key of the highlighted record of the first query
and then use locate to find this value in the
second query - but this does not seem very efficient
to me.
I am sure there is a simple solution and I scrolled
through the properties and methods of TIB_Query, but
I didn't find it.
Could someone give me a little hint, please?
TIA,
Christian
I have got the following problem:
my users have to select a record from an IB_Grid
(which is connected to an IB_Query).
Then they click a button and a new window with a
new query and a new grid opens. This grid should
automatically select the same record which was
select by the user in the first grid.
My question is how to accomplish this. The first
thing which I thought of was to read the primary
key of the highlighted record of the first query
and then use locate to find this value in the
second query - but this does not seem very efficient
to me.
I am sure there is a simple solution and I scrolled
through the properties and methods of TIB_Query, but
I didn't find it.
Could someone give me a little hint, please?
TIA,
Christian