Subject | Re: [IBO] TIBOQuery : Filtering records without refreshing |
---|---|
Author | scr0546 |
Post date | 2008-11-27T12:46:23Z |
--- In IBObjects@yahoogroups.com, Daniel Rail <daniel@...> wrote:
I've tried this before, but this is very,very slow ...
("pos(searchstr,fieldbyname('name').AsString)>0")
One dataset with all records, one for the filtered query.
into TClientdata / kbmMemTable at startup.
Maybe I will cancel the dataset with all records.
So the user can only search for records and has no view to all data.
I think it's time for this, because the recordcount increased from a
few hundert to 30.000 customersrecords.
Best regards,
Joe
>use
> Hi,
>
> At Wednesday, November 26, 2008, 1:25 AM, Hans wrote:
>
> > Not possible to sub-filter in TIBOQUERY
>
> It is possible. But, not with the Filter property. You have to
> the OnFilterRecord event, and have the Filtered property set toTrue.
I've tried this before, but this is very,very slow ...
("pos(searchstr,fieldbyname('name').AsString)>0")
>Yes I have implemented it this way now.
> > Maybe create a Temporary DataSet using the first filter
> > and then sub-filter this Tempory Dataset in TIBOQUERY
One dataset with all records, one for the filtered query.
> > Or receive the first filter results in a TMemoryDatasetI've tried this, but it takes a lot of time to copy all records
> > and basically do the same
>
> And, that would be another option. Load all the data into a memory
> dataset and use its Filter property.
into TClientdata / kbmMemTable at startup.
> But, if it's a multi-user application, neither of these methodswould
> permit to fetch new data from the database, unless the user has ayes, I know. A refresh-button is in the dialog.
> button that would force a refresh of the dataset.
> --Thanks for help.
> Best regards,
> Daniel Rail
> Senior Software Developer
> ACCRA Solutions Inc. (www.accra.ca)
> ACCRA Med Software Inc. (www.filopto.com)
>
Maybe I will cancel the dataset with all records.
So the user can only search for records and has no view to all data.
I think it's time for this, because the recordcount increased from a
few hundert to 30.000 customersrecords.
Best regards,
Joe