Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Search API > Methods

Search API: getSearchOption

Scroll Prev Next More

 

Returns the search option. This code should go to AfterTableInit or BeforeDisplay events of List or Print pages.

Syntax

getSearchOption(field, null)

Arguments

field

the name of the field.

Return value

Returns the search option, which is one of the following constants:

•CONTAINS

•EQUALS

•STARTS_WITH

•MORE_THAN

•LESS_THAN

•BETWEEN

•EMPTY_SEARCH

•NOT_CONTAINS

•NOT_EQUALS

•NOT_STARTS_WITH

•NOT_MORE_THAN

•NOT_LESS_THAN

•NOT_BETWEEN

•NOT_EMPTY

See also:

•Search API: setSearchOption()

•Choose fields screen: Search and Filter settings

•About Search API