ASPrunnerPro32x32     ASPRunnerPro manual


Javascript API: setOption()

<< Click to Display Table of Contents >>

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

ASPrunnerPro32x32     ASPRunnerPro manual


Javascript API: setOption()

 

Selects the 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);