Searches the contents of files according to one or more file conditions. FileSearch represents a JavaScript version of com.actuate.schemas.FileSearch.Table 4-43 lists actuate.reportexplorer.FileSearch functions.
Table 4-43 Gets the ConditionArray value for this FileSearch Gets the includeHiddenObject value for this FileSearch Gets the requiredFileName value for this FileSearch Sets the requiredFileName value for this FileSearchString. Either "private" or "shared" according to whether the FileSearch has been shared or not.if(fsearch.getAccessType( ) == "private"){ return;}if(fsearch.getCondition( ) == null){ return;}To retrieve the array of file conditions from the FileSearch object fsearch, use code similar to the following:Integer. The maximum number of match results to display. 0 indicates unlimited.actuate.reportexplorer.FileSearch.getDependentFileNameTo 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.getIncludeHiddenObjectTo alert the user that hidden objects are enabled for a FileSearch, use code similar to the following:actuate.reportexplorer.PrivilegeFilter object. A privilege filter.actuate.reportexplorer.FileSearch.getRequiredFileNameString. Either "private" or "shared" according to whether FileSearch has been shared or not.void FileSearch.setConditionArray(actuate.reportExplorer.FileCondition[ ] ConditionArray)Integer. The maximum number of match results to display. 0 indicates unlimited.To set FileSearch fsearch to stop searching after finding 100 matches, use code similar to the following:actuate.reportexplorer.FileSearch.setDependentFileNameactuate.reportexplorer.FileSearch.setIncludeHiddenObjectTo assign the privilege filter pfilter to the FileSearch fsearch, use code similar to the following:actuate.reportexplorer.FileSearch.setRequiredFileName
|
|
Copyright Actuate Corporation 2012 |