Subject Re: [IBO] Using TIB_SearchPanel results in other TIB_Query
Author Helen Borrie
At 01:24 PM 14/08/2003 +0000, you wrote:
>Hi,
>
> I need to be able to pass the results to a second
>window from a TIB_SearchPanel selected group of
>records. Which SQL string list from the original
>TIB_Query do I need to pass in the parameter to
>the second TIB_Query to get the same records?

It is waaaaay easier than that. If you need two separate queries, just use
the AssignSQLWithSearch method. If you have controls on two forms that
actually need to be looking at the same records, then point the grids (or
other data-aware controls) on both forms to the same datasource.

> Also, as an aside, can I pass the selected
>records (by using CTRL-Space) in this group of
>selected records without having to send a second
>string to the second form?

I can't visualise what you want to do. A data-aware control is only a
container in which you view what is in an underlying dataset. But - if you
are talking about some sort of button action that would look like "copying"
a group of selected rows from one dataset to another, say, then you can use
SelectedBookmarks to select the rows and apply that set of bookmarks to the
matching bookmarks in another set.

Helen