A small component to make the search/filter easy in any TDataset ( Table or Query ) using Filter property .
ADD SearchItem dynamically.
For example :
AsSearchBox1.AddSearchItem('Company' , 'Company Search', loAND, roEqualTo ,'Unisco' , True, True );
or
AsSearchBox1.AddSearchItem('City');
Relational Operators.
You can watch the video on YouTube
1- Copy files in safe folder
2- Open AsSearchBoxGroup.groupproj
and select AsSearchBoxDsgn.dpk
Right click > Install !
then add folder path of Source
in Library path
Tools>Library ...
1- Add TAsSearchBox
in your form/application .
2- Assign SearchDataSet with your dataset (TTable, TQuery...) , then You'll see a message "Do You want to clear & load ..."
a) Click Yes if you want to automatically load dataset Feilds in SearchItems.
or
b) Click No and Add manually the fields you want to search in.
3- Execute , Good luck !
Please ! Don't forget to :star: if you like it