Customizing the Search Page
Use the attributes of <csp:search> to customize the default search page. Here are descriptions of some of the attributes:
Attribute | Description |
---|---|
NAME | Required. The attribute value is the name of the generated client-side JavaScript function that invokes the search page. |
ONSELECT | For a pop-up search page, the attribute value is the name of the client-side JavaScript function invoked when the user selects a search result. |
OPTIONS |
The attribute value is a comma delimited list of search page options. Potential options include:
|
ORDER | The attribute value is the name of the SELECT field to order search results on. |
SELECT | The attribute value is a comma delimited list of fields to display in the search results. If no value is specified, then the fields listed as the values of the WHERE attribute are used. |
WHERE | Required. The attribute value is a comma delimited list of fields for the search page to search on. |
For a complete list of the <csp:search> tag's attributes, read the discussion of the “Search Page” in the Building Database Applications section of Using Caché Server Pages.