Version 1, changed by JasonKangas. 09/26/2006. Show version history
I’m trying to develop a simple knowledge base that can be searched using filters.
Here is an example:
Search page has a few drop down lists with pre-set values and operators are used to determine whether or not to include or exclude data.
Example: Search for X (from drop down list) AND Y(from drop down list) AND NOT Z (from drop down list)
X =
SearchForm/NameX
Y =
SearchForm/CityY
Z =
SearchForm/StateZ
(another similar example of searching with filters: http://developer.jot.com/WikiHome/WikiZone/ViewExamplePivot?tag=input )
I’ve found numerous search related tid-bits throughout the developer.jot.com site, however, I haven’t been able to find a sample bit of code that allows you to input your search criteria and perform the search on the same page. Most articles simply assume you know what you’re searching for and you don’t have any need for an input field to define the search criteria. If the above example is a bit much, what about the basic example of having a single page with a search dialog box that searches a given form/page/etc.
Please see FilteredSearchTutorial, particularly the "Filtering on Two or More Properties" section at the bottom.