Subject Re: [IBO] TIB_Searchbar
Author Helen Borrie
At 05:00 PM 23/06/2004 +0000, you wrote:
>Hi all,
>Ok, I admit it, I dont really know how to use the search feature.
>There I said it. The truth is, I have had a search component on my app
>for months and I only just figured out you need a update bar as well
>to make it work properly (I had been using custom update buttons).
>So I figured out if you do a search for, say, clientfirstname "Bob"
>you get all the records with Bob. And I also found if you clicked
>search again, and then hit cancel the dataset becomes unfiltered and
>all the records once again show up.
>Thing is, I think my customers will have a hard time understanding
>this. Is there a simple command (or a button I am missing) to clear
>the search and put the dataset back to just what the sql statement
>Thanks for the help. Also if theres any guides out there on using the
>search bar, feel free to link them to me!

If you don't have the GSG, then your best bet is to look up the help file
for TIB_SearchBar_ButtonType. It explains what each button does. The
button sbClear is probably the one you want for clearing the search criteria.

I agree the searchbar is confusing for users unless you teach them how to
use it. You can reduce its complexity by using VisibleButtons to hide all
except those buttons that the users are actually likely to use: possibly
keep only sbSearch and sbClear and add another button of your own to put
the dataset back into dssBrowse. Another approach is to hide the searchbar
altogether and use your own buttons to invoke the button methods.