SearchDialog.setCurrentFolder

Syntax

setCurrentFolder (val);

Parameters

val. Key of the folder where the search is performed.

Description

The setCurrentFolder method sets the folder, in which search is performed.

Comments

TO perform search in the current folder, select the Current Folder item in the Search Area drop-down list.

Example

To execute the example, the HTML page must contain the SearchDialog component named searchDialog (see Example of Creating the SearchDialog Component). The repository must contain a folder with the 2055 key. Set the current folder:

searchDialog.setCurrentFolder(2055);

The Current Folder item becomes available in the Search Area drop-down list. Select this item, enter the value to search and click the Find/Find All button. Names and properties of the objects found in the specified folder are output to the console.

See also:

SearchDialog