GetQueryList
Description
Returns the specified list of workspace queries known to the database.
This method returns the pathnames of the public or personal queries defined in the
DevOps Plan workspace. The
querytype parameter lets you specify the type of queries to return. Specifying the
constant OLEWKSPCSYSTEMQUERIES (1) returns only the public queries defined by
the DevOps Plan administrator. Specifying
the constant OLEWKSPCBOTHQUERIES (3) returns a list of all of the queries in
the workspace (including those of all users).
To return only the queries defined by a particular user, you must first set the
current user name by calling the SetUserName method. You can then call this method, specifying
the constant OLEWKSPCUSERQUERIES (2) for the querytype parameter.
SetSession method
of the Workspace Object,
if you have not created a Session object.Syntax
Perl
$workspace->GetQueryList(querytype);
- Identifier
- Description
- workspace
- The Workspace object obtained from the current session.
- querytype
- The type of queries to return.
- public queries
- personal queries
- all public and personal queries
- Return value
-
A reference to an array of strings, each of which contains the pathname of a single query.