DocuVieware Reference Guide
SetSearchSettings
Reference Guides > JavaScript API > Actions > Operations > SetSearchSettings
 Search

This function allows you to set custom settings in the text search snap-in.

SetSearchSettings: function (docuViewareID, wholeWord, caseSensitive, anyWord, pageSelection)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to search the text in.                        
wholeWord
A boolean to set the whole words checkbox checked or not.
caseSensitive
A boolean to set the case sensitive checkbox checked or not.
anyWord
A boolean to set the any word checkbox checked or not.
pageSelection
A numeric value to set the current page or whole document button enabled. Possible values are:
  • 0 = Current page only
  • 1 = Whole document

Return Value

1 if error, 0 if success.