Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Appearance

Print search parameters on the List page

Scroll Prev Next More

 

If you want to print Advanced search or Search panel parameters on the List page, add ASP code snippet with following code:

 

if not IsEmpty(Session(CSmartStr(strTableName) & "_advsearch")) then
 doAssignmentByRef searchClauseObj,unserialize(Session(CSmartStr(strTableName) & "_advsearch"))
end if
 
doAssignment fieldSearchData, searchClauseObj.var_where(strTableName & "_srchFields")
 
Response.write "Search was completed." & "<br>"
for i=0 to asp_count(fieldSearchData)-1
  fName = fieldSearchData(i)("fName")
  val1 = fieldSearchData(i)("value1")
  val2 = fieldSearchData(i)("value2")
  srchCat = fieldSearchData(i)("opt")
  srchNot = fieldSearchData(i)("not")
  Response.write "Search Field: " & fName & "<br>"
  Response.write "Search Option: " & val1 & "<br>"
next

 

Printing basic search parameters:

 

if not IsEmpty(Session(CSmartStr(strTableName) & "_advsearch")) then
  doAssignmentByRef searchClauseObj,unserialize(Session(CSmartStr(strTableName) & "_advsearch"))
end if
Response.write searchClauseObj.var_where(searchClauseObj.sessionPrefix & "_simpleSrch")

 

 

See also:

getSearchObject

getFieldValue

getSecondFieldValue

getSearchOption

SearchAPI

Insert code snippet