Can't find TSearchBox / TSearchItem / SearchComponent.dcu | Anyone know this component?

Hi guys

I'm trying to get an old project to compile but it says class "TSearchBox" not found.
The missing unit is "SearchComponent" and it's looking for SearchComponent.dcu

I have googled / binged / AOL'd / Ask.com'd / pudn'd  torry.net'd etc
..and I can't seem to find this.

Hopefully you can help.

Here's references in the unit that might help:

unit U_CommissionsManagement;

interface

uses
  .. SearchComponent;

type
  TCommissionsManagement = class(TForm)
    ..
    SearchBox1: TSearchBox;
    ..
    siFrom: TSearchItem;
    siFormula: TSearchItem;
    siAgent: TSearchItem;
    siTo: TSearchItem;
    procedure SearchBox1Click(Sender: TObject);
    ..
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

{$R *.DFM}

procedure TCommissionsManagement.SearchBox1Click(Sender: TObject);
begin
  Q_Search.Close;
  SearchBox1.SQL.Text := 'SELECT COMMISSIONS.*,';
  SearchBox1.SQL.Append('COMMISSION_AGENTS.AGENT_NAME,');
  SearchBox1.SQL.Append('COMMISSION_FORMULAS.FORMULA_NAME');
  SearchBox1.SQL.Append('FROM ');
  SearchBox1.SQL.Append('COMMISSION_FORMULAS, COMMISSIONS, COMMISSION_AGENTS');
  SearchBox1.SQL.Append('WHERE ');
  SearchBox1.SQL.Append('COMMISSION_FORMULAS.COM_FORM_ID = COMMISSIONS.COM_FORM_ID AND');
  SearchBox1.SQL.Append('COMMISSIONS.AGENT_ID = COMMISSION_AGENTS.AGENT_ID');

  Q_Search.SQL.Text := SearchBox1.GenResultSQL;

  if siFrom.Value <> null then
  begin
    Q_Search.Parameters.ParamByName('siFrom').DataType := ftDate;
    Q_Search.Parameters.ParamByName('siFrom').Value := Floor(siFrom.Value);
  end;

  if siTo.Value <> null then
  begin
    Q_Search.Parameters.ParamByName('siTo').DataType := ftDate;
    Q_Search.Parameters.ParamByName('siTo').Value := Floor(siTo.Value) + 1;
  end;

  if siAgent.Value <> null then
  begin
    Q_Search.Parameters.ParamByName('siAgent').DataType := ftInteger;
    Q_Search.Parameters.ParamByName('siAgent').Value := siAgent.Value;
  end;

  if siFormula.Value <> null then
  begin
    Q_Search.Parameters.ParamByName('siFormula').DataType := ftInteger;
    Q_Search.Parameters.ParamByName('siFormula').Value := siFormula.Value;
  end;

  Q_Search.Open;
end;

procedure TCommissionsManagement.Q_SearchAfterScroll(DataSet: TDataSet);
begin
  if Q_Search.FieldByName('Commission_ID').AsString <> '' then
  begin
    lblEditCommissionStructure.Enabled := True;
    lblDeleteCommissionStructure.Enabled := True;
  end
  else
  begin
    lblEditCommissionStructure.Enabled := False;
    lblDeleteCommissionStructure.Enabled := False;
  end;
end;

..

procedure TCommissionsManagement.FormShow(Sender: TObject);
begin
  TranslateForm(Self);
  SiFrom.DisplayCaption := Translate(ApplicationLanguage, Self.Name, 'SearchFrom', 'From');
  SiTo.DisplayCaption := Translate(ApplicationLanguage, Self.Name, 'SearchTo', 'To');
  SiAgent.DisplayCaption := Translate(ApplicationLanguage, Self.Name, 'SearchAgent', 'Agent');
  SiFormula.DisplayCaption := Translate(ApplicationLanguage, Self.Name, 'SearchFormula', 'Formula');
  SearchBox1.ButtonCaption := Translate(ApplicationLanguage, Self.Name, 'SearchSearchButton', 'Search');
end;

end.

Open in new window

LVL 13
rfwoolfAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Emmanuel PASQUIERFreelance Project ManagerCommented:
no, no luck neither with Delphi Super Page
http://dsp.href.com/

I think you have tried all the other good sites to look for delphi components.

It does not seem to be overly useful , if I understand the purpose of this SearchBox :
Create a SQL Query for Q_Search based on a request already written , just adding some search fields ?

Well, you have to set the parameters yourself , the request is most probably always the same (maybe some checkbox can make some search fields optional but that's not a big deal) . So I recommend recreating your user interface using standard DB fields and components, writing the complete Q_Search.SQL formula. You will loose less time doing that instead of trying to find this TSearchBox (if ever you find it), and have much less problems with different Delphi versions
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
calinutzCommented:
It is probably a custom made component.
Try to replace it's functionality. I mean, try to make your own component that would make the same things that the search box does. And then replace the component on the forms.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.