You define filters in a query to extract specific data.
The Rational® Publishing Engine filter is processed when data is extracted from the data
source.
Before you begin
Use the Scripted filter page to define a Javascript expression,
using the data attributes and variables accessible in the current
context.
Procedure
- In Document Studio, under Properties view, expand Data, scroll down to the filter property's value
column and click the ellipses. The Filter Editor window opens.
- In the Scripted filter page, in the left pane, expand Attributes or Variables. In the
right pane, select the Left operand, Operator, and Right operand from
the list.
- Click OK.
Note: If you
use the tools on the scripted filter page, any data attribute or variable
used is automatically selected in the left pane. If you enter the
condition manually, you must also manually select the used components.
Results
The selected order is added to the current element.
Example
The following example displays a scripted filter: