Please enable JavaScript to view this site.

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

resetSearch

Scroll Prev Next More

 

Clears the search, as if the user pressed 'Show all' or 'Reset search'. This code should go to AfterTableInit event of the List page.

Syntax

resetSearch()

Arguments

No arguments

Return value

No return value

Examples

If search is not started apply the initial search conditions and only show products that belong to Beverages category.

 

dynamic srchObj = SearchClause.getSearchObject("Products");
srchObj.resetSearch();

See also:

About Search API