GetAllQueriesList

Description

Returns the complete list of queries (queries, charts, reports) in the workspace.

This method returns both the public queries defined by the Rational® ClearQuest® administrator and personal queries created by individual users.

Note: For the UNIX system and Linux, the return value for this method does not include the names of reports and charts.

Syntax

VBScript

variant_queries = workspace.GetAllQueriesList 

Perl

$ref_queries = $workspace->GetAllQueriesList(); 
Identifier
Description
workspace
The Workspace object obtained from the current session.
Return value
In Visual Basic, an array of Variants (each containing a string) that make up the list of all queries (queries, charts, reports). Each string contains the pathname of a query.In Perl, a reference to an array of strings containing the query pathnames.

Example

Perl

$MyWorkSpace = $Session->GetWorkSpace();

$MyQueriesListREF = $MyWorkSpace->GetAllQueriesList();

foreach (@$MyQueriesListREF) {

    print ("Query name: $_\n");

}