Please enable JavaScript to view this site.

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

Search API: getFieldValue

Scroll Prev Next More

 

Returns the search control value.

Syntax

getFieldValue(field);

Arguments

field

the name of the field.

Return value

Returns the search control value.

Examples

This code should go to AfterTableInit or BeforeDisplay events of List or Print page. Get the search value of the Make field.

 

dynamic srchObj = SearchClause.getSearchObject("Cars");
MVCFunctions.Echo(srchObj.getFieldValue("Make"));

See also:

Search API: getSearchObject

Search API: setFieldValue()

Example: Search Master and Details tables together

Example: Print search parameters on the List page

About Search API