Table 4-41 lists actuate.reportexplorer.File functions.
Table 4-41 getId( ) getName( ) getSize( ) setId( ) setName( ) setSize( ) String. Either "private" or "shared" according to whether the file has been shared or not.if(file.getAccessType( ) == "private"){ return;}To stop a script from running if a file does not have a description, use code similar to the following:if(file.getDescription( ) == (null || "")){ return;}To store the file extension of the File object file in a variable called type, use code similar to the following:To store the file id of the File object file in a variable called id, use code similar to the following:To store the name of the File object file in a variable called name, use code similar to the following:To store the name of the owner of the File object file in a variable called owner, use code similar to the following:To halt a script if the number of pages exceeds 100 in the file referenced by the File object largefile, use code similar to the following:if (largefile.getPageCount( ) > 100) {return;}To store the time stamp for the file referenced by the File object oldfile in a variable called timestamp, use code similar to the following:String. "private" or "shared" indicating whether the file has been shared or not.if(file.getPageCount( ) > 100) {file.setPageCount(100);}To set a file’s size to 0, use code similar to the following:To set the file’s version to 1 for the first version, use code similar to the following:
|
|
Copyright Actuate Corporation 2012 |