In the great majority of cases, it is easiest to set a filter query with the <rql-filter> tag. However, there are two other ways of defining the filter used by an item descriptor. You might want to use one of these techniques if you need to set the filter query at runtime:

Note: For best performance, two constraints apply: