Actuate JavaScript API classes : Class actuate.reportexplorer.FileCondition

Class actuate.reportexplorer.FileCondition

Description

The FileCondition object contains a display field associated with a filter string called a match. This can be used for the purposes of comparing field values for searching, filtering, or batch operations. For example, a file condition can match the FileType field with rptdesign to identify all the rptdesign files for a filter.

Constructor

Syntax

actuate.reportexplorer.FileCondition( )

Constructs a new FileCondition object.

Function summary

Table 4-36 lists actuate.reportexplorer.FileCondition functions.

actuate.reportexplorer.FileCondition.getField

Syntax

string FileCondition.getField( )

Returns the field for this FileCondition.

Returns

String. Possible values are: "Name", "FileType", "Description", "PageCount", "Size", "TimeStamp", "Version", "VersionName", and "Owner".

Example

To store the display field of fcondition in a variable called field, use code similar to the following:

var field = fcondition.getField( );

actuate.reportexplorer.FileCondition.getMatch

Syntax

string FileCondition.getMatch( )

Returns the match value for this FileCondition.

Returns

String.

Example

To store the matching condition of fcondition in a variable called match, use code similar to the following:

var match = fcondition.getMatch( );

actuate.reportexplorer.FileCondition.setField

Syntax

void FileCondition.setField(string field)

Sets the field for the FileCondition.

Reportexplorers

field

String. Possible values are: "Name", "FileType", "Description", "PageCount", "Size", "TimeStamp", "Version", "VersionName", "Owner".

Example

To set the display field to FileType for fcondition, use code similar to the following:

fcondition.setField("FileType");

actuate.reportexplorer.FileCondition.setMatch

Syntax

void FileCondition.setMatch(string match)

Sets the match value for the FileCondition.

Parameters

match

String.

Example

To set the match value for fcondition to rptdesign, use code similar to the following:

fcondition.setField("rptdesign");

(c) Copyright Actuate Corporation 2011