Class actuate.reportexplorer.FolderItems
Description
A container for the contents of a folder. FolderItems represents a JavaScript version of com.actuate.schemas.GetFolderItemsResponse.
Constructor
Syntax
actuate.reportexplorer.FolderItems( )
Constructs a new FolderItems object.
Function summary
Table 4-44 lists actuate.reportexplorer.FolderItems functions.
actuate.reportexplorer.FolderItems.getFetchHandle
Syntax
string FolderItems.getFetchHandle( )
Retrieves the fetch handle for this folder’s contents.
Returns
String. The fetch handle.
Example
To retrieve the fetch handle from fitems, use code similar to the following:
var handle = fitems.getFetchHandle( );
actuate.reportexplorer.FolderItems.getItemList
Syntax
actuate.reportexplorer.File[ ] FolderItems.getItemList( )
Gets the list of file contents for the folder.
Returns
Array of actuate.reportexplorer.File objects. A list of the folder contents.
Example
To store fitems’ item list in the files variable, use code similar to the following:
files = fitems.getItemList( );
actuate.reportexplorer.FolderItems.getTotalCount
Syntax
string FolderItems.getTotalCount( )
Returns the maximum number of list items to retrieve from this folder.
Returns
String. The total count.
Example
To retrieve the total count from fitems, use code similar to the following:
var count = fitems.getTotalCount( );
actuate.reportexplorer.FolderItems.setFetchHandle
Syntax
void FolderItems.setFetchHandle(string fetchHandle)
Sets the fetch handle value for this FolderItems object.
Parameters
fetchHandle
String. The fetch handle.
Example
To set FolderItems fitems’ fetch handle to dir, use code similar to the following:
fitems.setFetchHandle("dir");
actuate.reportexplorer.FolderItems.setItemList
Syntax
void FolderItems.setItemList(ctuate.reportexplorer.File[ ] itemList)
Sets the list of contents for this Folder.
Parameters
itemList
Array of actuate.reportexplorer.File objects. A list of the folder contents.
Example
To assign the item list from fitems1 to fitems2, use code similar to the following:
fitems2.setItemList(fitems1.getItemList( ));
actuate.reportexplorer.FolderItems.setTotalCount
Syntax
void FolderItems.setDataType(string totalCount)
Sets the maximum number of list items to retrieve from this folder.
Parameters
totalCount
String. The total count.
Example
To reset the count total for fitems, use code similar to the following:
fitems.setTotalCount("0");

Additional Links:

Copyright Actuate Corporation 2012