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
- Select an element that has a query in the template content
editor.
- In the Properties view, expand Data.
- Locate the filter property and click the ellipsis. The Filter Editor window opens.
- In the Scripted filter window, expand Attributes or Variables.
- Select the Left operand, Operator,
or Right operand from the list.
- Click Add.
- Click OK.
Note: If you
use the tools on the scripted filter page, any data attribute or variable
used is automatically selected. If you enter the condition manually,
you must also manually select the used components.
Example
The following example displays a scripted filter: