Class actuate.reportexplorer.FileSearch
Description
The FileSearch object performs searching on files according conditions.
Constructor
Syntax
Constructs a new FileSearch object.
Function summary
Table 4-37 lists actuate.reportexplorer.FileSearch functions.
Table 4-37 actuate.reportexplorer.FileSearch functions Gets the ConditionArray value for this FileSearch. Gets the includeHiddenObject value for this FileSearch. Gets the requiredFileName value for this FileSearch. Sets the ConditionArray value for this FileSearch. Sets the requiredFileName value for this FileSearch.actuate.reportexplorer.FileSearch.getAccessType
Syntax
Returns
String. Either "Private" or "shared" according to whether the FileSearch has been shared or not.
Example
To halt a script if a FileSearch is private, use code similar to the following:
if(fsearch.getAccessType( ) == "Private"){ return;}actuate.reportexplorer.FileSearch.getCondition
Syntax
Gets the condition from the FileSearch.
Returns
actuate.reportexplorer.FileCondition object. The Condition.
Example
To halt a script if a FileSearch does not have a condition, use code similar to the following:
if(fsearch.getCondition( ) == null){ return;}actuate.reportexplorer.FileSearch.getConditionArray
Syntax
Gets the file condition array for this FileSearch.
Returns
Array of actuate.reportexplorer.FileCondition objects.
Example
To retrieve the array of file conditions from the FileSearch object fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getCountLimit
Syntax
Gets the FileSearch CountLimit value.
Returns
Example
To retrieve the count limit from the FileSearch object fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getDependentFileId
Syntax
Gets the file Id of the FileSearch.
Returns
Example
To retrieve the file Id from the FileSearch object fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getDependentFile
NameSyntax
Gets the file name of the FileSearch.
Returns
Example
To retrieve the file name from the FileSearch object fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getFetchDirection
Syntax
Gets the fetch direction of the FileSearch.
Returns
Example
To switch the fetch direction for the FileSearch object fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getFetchHandle
Syntax
Returns
Example
To retrieve the fetch handle from the FileSearch object fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getFetchSize
Syntax
Returns
Example
To halt a script if a FileSearch has a fetch size of 0, use code similar to the following:
if(fsearch.getFetchSize( ) == 0){ return;}actuate.reportexplorer.FileSearch.getIncludeHidden
ObjectSyntax
Gets the includeHiddenObject value.
Returns
Example
To alert the user that hidden objects are enable for a FileSearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getOwner
Syntax
Returns
Example
To retrieve the owner of fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getPrivilegeFilter
Syntax
Returns
actuate.reportexplorer.PrivilegeFilter object.
Example
To retrieve the owner of fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getRequiredFileId
Syntax
Gets the requiredFileId of the FileSearch.
Returns
Example
To retrieve the file Id assigned to fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.getRequiredFile
NameSyntax
Gets the requiredFileName name.
Returns
Example
To retrieve the file name assigned to fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.setAccessType
Syntax
Parameters
String. Either "private" or "shared" according to whether the FileSearch has been shared or not.
Example
To make a FileSearch fsearch private, use code similar to the following:
actuate.reportexplorer.FileSearch.setCondition
Syntax
Sets the condition from the FileSearch.
Parameters
actuate.reportexplorer.FileCondition object. The Condition.
Example
To clear FileSearch fsearch’s condition, use code similar to the following:
actuate.reportexplorer.FileSearch.setConditionArray
Syntax
Sets the FileSearch Type value for this FileSearch.
Parameters
Array of actuate.reportexplorer.FileCondition objects. The FileSearch type.
Example
To clear FileSearch fsearch’s condition array, use code similar to the following:
actuate.reportexplorer.FileSearch.setCountLimit
Syntax
Sets the FileSearch CountLimit value.
Parameters
Example
To set FileSearch fsearch to stop searching after finding 100 matches, use code similar to the following:
actuate.reportexplorer.FileSearch.setDependentFileId
Syntax
Sets the file ID of the FileSearch.
Parameters
Example
To set FileSearch fsearch’s File Id to current, use code similar to the following:
actuate.reportexplorer.FileSearch.setDependentFile
NameSyntax
Sets the file name of the FileSearch.
Parameters
Example
To set FileSearch fsearch’s File Name to current, use code similar to the following:
actuate.reportexplorer.FileSearch.setFetchDirection
Syntax
Sets the fetch direction for this FileSearch
Parameters
Example
To switch the fetch direction for the FileSearch object fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.setFetchHandle
Syntax
Sets the fetch handle for the FileSearch.
Parameters
Example
To set FileSearch fsearch’s fetch handle to ezsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.setFetchSize
Syntax
Parameters
Example
To set FileSearch fsearch’s fetch size to 12, use code similar to the following:
actuate.reportexplorer.FileSearch.setIncludeHidden
ObjectSyntax
Sets the includeHiddenObject value for this FileSearch.
Parameters
Example
To prohibit FileSearch fsearch from including hidden objects, use code similar to the following:
actuate.reportexplorer.FileSearch.setOwner
Syntax
Sets the owner value for this FileSearch.
Parameters
Example
To set FileSearch fsearch’s owner to administrator, use code similar to the following:
actuate.reportexplorer.FileSearch.setPrivilegeFilter
Syntax
Parameters
actuate.reportexplorer.PrivilegeFilter object.
Example
To assign the privilege filter pfilter to the FileSearch fsearch, use code similar to the following:
actuate.reportexplorer.FileSearch.setRequiredFileId
Syntax
Sets the requiredFileId of the FileSearch.
Parameters
Example
To set FileSearch fsearch’s File Id to permanent, use code similar to the following:
actuate.reportexplorer.FileSearch.setRequiredFile
NameSyntax
Parameters
Example
To set FileSearch fsearch’s File Name to permanent, use code similar to the following:
(c) Copyright Actuate Corporation 2011 |
![]() |