Please enable JavaScript to view this site.

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

Search API: getSecondFieldValue

Scroll Prev Next More

 

Returns the second search control value, when BETWEEN is selected as a search option. This code should go to AfterTableInit or BeforeDisplay event of List or Print pages.

Syntax

getSecondFieldValue($field);

Arguments

$field

the name of the field.

Return value

Returns the second search control value, when BETWEEN is selected as a search option.

Examples

 

Print the second search value of Horsepower field on the screen ( in case of BETWEEN search ).

 

 

$srchObj = SearchClause::getSearchObject("Cars");
echo $srchObj->getSecondFieldValue("Horsepower");

 

 

See also:

Search API: setSecondFieldValue()

Example: Print search parameters on the List page

About Search API

 

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