SetQuery

$s->SetQuery(queryName, clause1, clause2, ...);

SetQuery() provides a named set of filter clauses for the query. It can directly use your local field names or rely on the field map to translate them when left angle brackets (<) and right angle brackets (>) are used. The value queryName is local to the current schema. STANDARD is used for the QUERY option, but you can define a second query to present an alternate restrictions query. The value clauseN is a string defining a condition in the format field operator value. For example:

$s->SetQuery("STANDARD", 
                 "<OWNER> eq <*USER*>",
                 "<STATE> in <QUERY_STATES>");

Use only commas to separate multiple values.

Tip: SetQuery() is effectively an AND group of clauses. OR or NOT connectives are not supported.