Skip to main content

Customizing the Search Page

Use the attributes of <csp:search> to customize the default search page. Here are descriptions of some of the attributes:

Search Tag 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:

  • popup — search page appears in a pop-up window

  • predicates — search page supplies drop-down list of search predicates

  • nopredicates — search page does not supply a drop-down list of search predicates

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.
Note:

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.

FeedbackOpens in a new tab