Sets the second search control value if the BETWEEN option is selected. This code should go to AfterTableInit event of the List page.
Syntax
setSecondFieldValue(field, value);
Arguments
field
the name of the field.
value
the value of the search field
Return value
No return value.
Examples
Set the second search value of Horsepower field to 200 if it is empty ( in case of BETWEEN search ).
dynamic srchObj = SearchClause.getSearchObject("Cars");
dynamic value = srchObj.getSecondFieldValue("Horsepower");
if( value == null ) {
srchObj.setSecondFieldValue("Horsepower", 200 );
}
See also:
•Search API: getSecondFieldValue()