Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > SearchController object

Javascript API: SearchController object (deprecated) 

Scroll Prev Next More

 

Deprecated

SearchController object is deprecated, we recommend using Search API instead.

 

SearchController object allows you to manage the search panel. It is available in the JavaScript OnLoad event for the List/Report/Chart pages (pages with a Search panel).

 

Use the getSearchController() method to get the search panel object:

 

var srch = pageObj.getSearchController();

Methods

Method

Description

addField()

Adds a field to the search panel and calls the callback function.

clear()

Deletes all fields from the search panel.

deleteField()

Deletes a field from the search panel.

display()

Hides or shows the search panel, shows the search panel as a popup.

getSearchFields()

Returns search fields related to all fields or only the specified one.

toggleCriteria()

Hides or shows the criteria block on the search panel, sets values of the search criteria.

toggleOptions()

Hides or shows options on the search panel.

See also:

About Search API

JavaScript API: SearchField object

JavaScript API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software