Show/Hide Toolbars

PHPRunner 9.8 Manual

Navigation: Advanced topics > Programming topics > Javascript API > SearchField object > Methods

PHPrunner32x32     PHPRunner manual


Javascript API: setOption()

Scroll Prev Next More

 

Selects option for search field on the search panel (CONTAINS, EQUALS etc.).

Syntax

field.setOption(option);

Arguments

option - one of the available search options with the following prefix Runner.search.options. Example: Runner.search.options.MORE_THAN, Runner.search.options.NOT_EMPTY.

Return value

No return value.

Example

Select Between option for search field on the search panel:

JavaScript OnLoad event

var srch = pageObj.getSearchController();
var field = srch.getSearchFields()[0];

field.setOption(Runner.search.options.BETWEEN);