Subject | Filtering problem |
---|---|
Author | Helmut Steinberger |
Post date | 2001-11-01T14:37:41Z |
Hi,
I want to apply a filter to an ib_query, depending on if the column
inactive exists in the table.
I want to do this in a method of a descentant of the tib_query.
For example:
tmyib_query = class (tib_query)
procdure anypossiblemethod; override;
end;
procedure tmyib_query.anypossiblemethod;
begin
inherited anypossiblemethod;
...
some code which checks if a field called inactive is in the view and
then set a filter, which checks if the field inactive = 'F'.
...
end;
The background: I want to show only records, where inactive = 'F', but
don't want to code this in every module of the application.
Any ideas how to do that?
cu
Helmut
I want to apply a filter to an ib_query, depending on if the column
inactive exists in the table.
I want to do this in a method of a descentant of the tib_query.
For example:
tmyib_query = class (tib_query)
procdure anypossiblemethod; override;
end;
procedure tmyib_query.anypossiblemethod;
begin
inherited anypossiblemethod;
...
some code which checks if a field called inactive is in the view and
then set a filter, which checks if the field inactive = 'F'.
...
end;
The background: I want to show only records, where inactive = 'F', but
don't want to code this in every module of the application.
Any ideas how to do that?
cu
Helmut