The SearchField object allows managing search fields on the search panel. It is used along with SearchController object.
SearchField object is available in the JavaScript OnLoad event for the List/Report/Chart pages (pages with a Search panel) and an Advanced Search page.
Use the getSearchFields() method to get the array of search fields:
var srch = pageObj.getSearchController();
var fields = srch.getSearchFields();
Methods
Method |
Description |
Adds the option to the list of search options. |
|
Returns the control object of the search field. |
|
Returns the field name. |
|
Returns the option for the search field that is currently selected. |
|
Returns the list of all options that are currently available in the search panel. |
|
Returns the second control object of the search field. |
|
Removes the field from the search panel. |
|
Removes the option from the list of search options. |
|
Selects the option for the search field. |
•BETWEEN
•CONTAINS
•EMPTY
•EQUALS
•LESS_THAN
•MORE_THAN
•STARTS_WITH
•NOT_BETWEEN
•NOT_CONTAINS
•NOT_EMPTY
•NOT_EQUALS
•NOT_LESS_THAN
•NOT_MORE_THAN
•NOT_STARTS_WITH
See also:
•JavaScript API: SearchController object (deprecated)