Class actuate.reportexplorer.FileSearch
Description
Searches the contents of files according to one or more file conditions. FileSearch represents a JavaScript version of com.actuate.schemas.FileSearch.
Constructor
Syntax
actuate.reportexplorer.FileSearch( )
Constructs a new FileSearch object.
Function summary
Table 44‑43 lists actuate.reportexplorer.FileSearch functions.
Table 44‑43 actuate.reportexplorer.FileSearch functions
Function | Condition |
| Gets the accessType value for this FileSearch |
| Gets the condition value for this FileSearch |
| Gets the ConditionArray value for this FileSearch |
| Gets the countLimit value for this FileSearch |
| Gets the id value for this FileSearch |
| Gets the file name value for this FileSearch |
| Gets the fetch direction for this FileSearch |
| Gets the fetchHandle value for this FileSearch |
| Gets the fetchSize value for this FileSearch |
| Gets the includeHiddenObject value for this FileSearch |
| Gets the owner |
| Gets the privilegeFilter value for this FileSearch |
| Gets the requiredFileId for this FileSearch |
| Gets the requiredFileName value for this FileSearch |
| Sets the accessType value for this FileSearch |
| Sets the condition value for this FileSearch |
| Sets the ConditionArray value for this FileSearch |
| Sets the id value for this FileSearch |
| Sets the id value for this FileSearch |
| Sets the file name value for this FileSearch |
| Sets the owner value for this FileSearch |
| Sets the fetchHandle value for this FileSearch |
| Sets the fetchSize value for this FileSearch |
| Sets the includeHiddenObject value for this FileSearch |
| Sets the Owner |
| Sets the PrivilegeFilter value for this FileSearch |
| Sets the requiredFileId for this FileSearch |
| Sets the requiredFileName value for this FileSearch |
getAccessType
Syntax
string FileSearch.getAccessType( )
Gets the access type.
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;}
getCondition
Syntax
actuate.reportexplorer.FileCondition FileSearch.getCondition( )
Gets the condition from the FileSearch.
Returns
actuate.reportexplorer.FileCondition object. A condition to apply in a search.
Example
To halt a script if a FileSearch does not have a condition, use code similar to the following:
if(fsearch.getCondition( ) == null){ return;}
getConditionArray
Syntax
actuate.reportexplorer.FileCondition[ ] FileSearch.getConditionArray( )
Gets the file condition array for this FileSearch.
Returns
Array of actuate.reportexplorer.FileCondition objects. Multiple conditions to apply in a search.
Example
To retrieve the array of file conditions from the FileSearch object fsearch, use code similar to the following:
var conditions = new Array( );
conditions = fsearch.getConditionArray( );
getCountLimit
Syntax
integer FileSearch.getCountLimit( )
Gets the maximum number of match results to display set for this file search.
Returns
Integer. The maximum number of match results to display. 0 indicates unlimited.
Example
To retrieve the count limit from the FileSearch object fsearch, use code similar to the following:
var limit = fsearch.getCountLimit( );
getDependentFileId
Syntax
string FileSearch.getDependentFileId( )
Gets the file ID of the FileSearch, identifying the file it is set to search.
Returns
String. The file ID.
Example
To retrieve the file Id from the FileSearch object fsearch, use code similar to the following:
var id = fsearch.getDependantFileId( );
getDependentFileName
Syntax
string FileSearch.getDependentFileName( )
Gets the file name of the FileSearch.
Returns
String. The file name.
Example
To retrieve the file name from the FileSearch object fsearch, use code similar to the following:
var name = fsearch.getDependantFileName( );
getFetchDirection
Syntax
boolean FileSearch.getFetchDirection( )
Gets the fetch direction of the FileSearch.
Returns
Boolean. True indicates ascending order.
Example
To switch the fetch direction for the FileSearch object fsearch, use code similar to the following:
fsearch.setFetchDirection(!fsearch.getFetchDirection( ));
getFetchHandle
Syntax
string FileSearch.getFetchHandle( )
Gets the fetch handle.
Returns
String. The fetch handle.
Example
To retrieve the fetch handle from the FileSearch object fsearch, use code similar to the following:
var handle = fsearch.getFetchHandle( );
getFetchSize
Syntax
integer FileSearch.getFetchSize( )
Gets the fetch size.
Returns
Integer. The fetch size.
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;}
getIncludeHiddenObject
Syntax
boolean FileSearch.getIncludeHiddenObject( )
Gets the includeHiddenObject value for this FileSearch.
Returns
Boolean. True includes hidden object.
Example
To alert the user that hidden objects are enabled for a FileSearch, use code similar to the following:
if(fsearch.getIncludeHiddenObejct( )){
alert("Hidden objects are enabled.");
}
getOwner
Syntax
string FileSearch.getOwner( )
Gets the owner’s name.
Returns
String. The owner’s user name.
Example
To retrieve the owner of fsearch, use code similar to the following:
var owner = fsearch.getOwner( );
getPrivilegeFilter
Syntax
actuate.reportexplorer.PrivilegeFilter FileSearch.getPrivilegeFilter( )
Gets the privilege filter.
Returns
Example
To retrieve the privilege filter for fsearch, use code similar to the following:
var privileges = fsearch.getPrivilegeFilter( );
getRequiredFileId
Syntax
integer FileSearch.getRequiredFileId( )
Gets the requiredFileId of FileSearch.
Returns
Integer. A field ID.
Example
To retrieve the required field ID assigned to fsearch, use code similar to the following:
var id = fsearch.getRequiredFileId( );
getRequiredFileName
Syntax
string FileSearch.getRequiredFileName( )
Gets the requiredFileName name.
Returns
String. A file name.
Example
To retrieve the file name assigned to fsearch, use code similar to the following:
var id = fsearch.getRequiredFileName( );
setAccessType
Syntax
void FileSearch.setAccessType(string accessType)
Sets the access type.
Parameter
accessType
String. Either "private" or "shared" according to whether FileSearch has been shared or not.
Example
To make a FileSearch fsearch private, use code similar to the following:
fsearch.setAccessType("private");
setCondition
Syntax
void FileSearch.setCondition(actuate.reportExplorer.FileCondition condition)
Sets a search condition for this FileSearch.
Parameter
condition
actuate.reportexplorer.FileCondition object. A condition to apply to this search.
Example
To clear FileSearch fsearch’s condition, use code similar to the following:
fsearch.setCondition(null);
setConditionArray
Syntax
void FileSearch.setConditionArray(actuate.reportExplorer.FileCondition[ ] ConditionArray)
Sets multiple search conditions for this FileSearch.
Parameter
ConditionArray
Array of actuate.reportexplorer.FileCondition objects. Conditions to apply to this search.
Example
To clear FileSearch fsearch’s condition array, use code similar to the following:
fsearch.setConditionArray(null);
setCountLimit
Syntax
void FileSearch.setCountLimit(integer countlimit)
Sets the maximum number of match results to display.
Parameter
countlimit
Integer. The maximum number of match results to display. 0 indicates unlimited.
Example
To set FileSearch fsearch to stop searching after finding 100 matches, use code similar to the following:
fsearch.setCountLimit(100);
setDependentFileId
Syntax
void FileSearch.setDependentFileId(string dependentFileId)
Sets the file ID of the FileSearch.
Parameter
dependentFileId
String. A file ID.
Example
To set FileSearch fsearch’s File ID to current, use code similar to the following:
fsearch.setDependentFileId("current");
setDependentFileName
Syntax
void FileSearch.setDependentFileName(string dependentFileName)
Sets the file name of FileSearch.
Parameter
dependentFileName
String. A file name.
Example
To set FileSearch fsearch’s file name to current, use code similar to the following:
fsearch.setDependentFileName("current");
setFetchDirection
Syntax
void FileSearch.setFetchDirection(boolean fetchDirection)
Sets the fetch direction for this FileSearch.
Parameter
fetchDirection
Boolean. True indicates ascending order.
Example
To switch the fetch direction for the FileSearch object fsearch, use code similar to the following:
fsearch.setFetchDirection(!fsearch.getFetchDirection( ));
setFetchHandle
Syntax
void FileSearch.setFetchHandle(string fetchHandle)
Sets the fetch handle for FileSearch.
Parameter
fetchHandle
String. A fetch handle.
Example
To set FileSearch fsearch’s fetch handle to ezsearch, use code similar to the following:
fsearch.setFetchHandle("ezsearch");
setFetchSize
Syntax
void FileSearch.setFetchSize(integer fetchSize)
Sets the fetch size.
Parameter
fetchSize
Integer. The fetch size.
Example
To set FileSearch fsearch’s fetch size to 12, use code similar to the following:
fsearch.setFetchSize(12);
setIncludeHiddenObject
Syntax
void FileSearch.setIncludeHiddenObject(boolean includeHiddenObject)
Sets the includeHiddenObject value for this FileSearch.
Parameter
includeHiddenObject
Boolean. True includes hidden object.
Example
To prohibit FileSearch fsearch from including hidden objects, use code similar to the following:
fsearch.setIncludeHiddenObject(false);
setOwner
Syntax
void FileSearch.setOwner(string owner)
Sets the owner for this FileSearch.
Parameter
owner
String. The owner’s user name.
Example
To set the FileSearch fsearch owner to administrator, use code similar to the following:
fsearch.setOwner("administrator");
setPrivilegeFilter
Syntax
void FileSearch.setPrivilegeFilter(actuate.reportexplorer.PrivilegeFilter privilegeFilter)
Sets the privilege filter.
Parameter
privilegeFilter
actuate.reportexplorer.PrivilegeFilter object. The privilege filter.
Example
To assign the privilege filter pfilter to the FileSearch fsearch, use code similar to the following:
fsearch.setPrivilegeFilter(pfilter);
setRequiredFileId
Syntax
void FileSearch.setRequiredFileId(string requiredFileId)
Sets the requiredFileId for this FileSearch.
Parameter
requiredFileId
String. A file ID.
Example
To set the FileSearch fsearch file ID to permanent, use code similar to the following:
fsearch.setRequiredFileId("permanent");
setRequiredFileName
Syntax
void FileSearch.setRequiredFileName(string requiredFileName)
Sets the required file name.
Parameter
requiredFileName
String. A file name.
Example
To set the FileSearch fsearch file name to permanent, use code similar to the following:
fsearch.setRequiredFileName("permanent");