Checks if search was initiated by the user. This code should go to AfterTableInit event of the List page.
Syntax
searchStarted()
Arguments
no arguments
Return value
true - if search was initiated
false - if search was not initiated
Examples
If search is not started apply the initial search conditions and only show products that belong to Beverages category.
srchObj = SearchClause.getSearchObject("Products")
if not srchObj.searchStarted() then
srchObj.setFieldValue("CategoryName", "Beverages" )
end
See also: