Class actuate.xtabanalyzer.Filter
Description
The Filter class creates a filter condition on a cross tab dimension level. The condition is expressed as value1 operator value2. The values can either be a single value, or an array of values, depending on the operator. For example, IN can be expressed as value1 IN value2 value3 ... valueN.
Constructor
Syntax
Constructs a cross tab filter object.
Parameters
String. The dimension level full name.
String. The operator can be any operator. Table 5-8 lists the valid filter operators and the number of arguments to pass to the constructor or setValues( ).
Table 5-8 Filter operators Matches the bottom n values Matches the bottom percent of the values Matches False Boolean values Matches any value in an set of values. Not between an inclusive range Does not match any value in a set of values Search for values that do not match a pattern Matches the top percent of the values Matches True Boolean valuesString. The value to compare to the column value.
String. The first value to compare to the column value for the BETWEEN or NOT_BETWEEN operators.
String. The second value to compare to the column value for the BETWEEN or NOT_BETWEEN operators.
array of Strings. The values to compare to the column value for the IN and NOT_IN operators.
Function summary
Table 5-9 lists actuate.xtabanalyzer.Filter functions.
Table 5-9 actuate.xtabanalyzer.Filter functionsactuate.xtabanalyzer.Filter.getLevelName
Syntax
Returns the level name of a filter.
Returns
Example
This example retrieves the filter level name for a filter.
actuate.xtabanalyzer.Filter.getOperator
Syntax
Returns
Example
This example retrieves the filter operator.
actuate.xtabanalyzer.Filter.getValues
Syntax
string[ ] Filter.getValues( )Returns an array containing the values used within the filter.
Example
This example retrieves the filter level name for a filter.
actuate.xtabanalyzer.Filter.setLevelName
Syntax
Sets the level name to filter.
Parameters
String. The name of the level to filter.
Example
This example sets the filter name to levelName.
actuate.xtabanalyzer.Filter.setOperator
Syntax
Parameters
Example
This example sets the filter operator to EQ.
actuate.xtabanalyzer.Filter.setValues
Syntax
void Filter.setValues(string[ ] value1, string[ ] value2)Sets the values for the filter.
Parameters
String, or array of strings representing the first value of the filter.
String, or array of strings representing the second value of the filter.
Example
(c) Copyright Actuate Corporation 2011 |
![]() |