SetResultSet

$s->SetResultSet(queryName,ID,fieldList,formatString);

SetResultSet() identifies the fields that the query should return.

The value fieldList is a comma-separated list of field names. The first field must be ID (generated by Rational® ClearQuest®) because the integration must be able to identify and work with the selected records. A customer-generated ID field does not meet this requirement.

The value formatString is a standard printf format string. For example:

 $s->SetResultSet("STANDARD",
                     "<ID>,<STATE>,<PRIORITY>,<SEVERITY>,<HEADLINE>",
                     "%s %-9.9s %1.1s %1.1s %-45.45s");
Tip: If you use both local and Rational ClearQuest queries, the SetResultSet definitions must contain the exact fields in the exact order as your queries.