To help save time in locating a RAS asset in a repository you can
use existing search queries or create and save new ones. Queries can be created
by specifying the namespace, a profile or repository, or a property name.
About this task
To create a custom search query:
Procedure
- In the Asset Explorer view, click the Open Search dialog button
. The RAS
Search page of the Search window opens.Note: You may need to enable
the Reusable Asset Management capabilities in the Preferences window if the
Asset Explorer view is not visible. (To set these capabilities, click ,
expand Workbench, and click Capabilities.)
- Under Search using, click Query and
click Choose. The Query
Selection Dialog window opens.
- Click New to open the Query Builder
Dialog window.
- Create the query in the Query Builder Dialog window.
- Type a name for the query in the Query Name field.
- Under Query Builder, select a profile
and property to search from the Profile and Property lists.
For example, if you wanted to query a profile name, you would select Default
Profile as the profile and Profile as the
property to search. Note that you select the asterisk (*) character from the Property list
to include all properties.
- Select the attribute type to search for from the Attribute list.
- Select either contains or does not contain from the Contains list.
- Type the value you are searching for in the Value field.
- If all the fields are set, the Add button
is enabled. Click Add to add the query to the table.
- Optional: To create additional, nested conditions for the query,
do steps b. through f., select a value from the Nested list
to indicate how the conditions are logically related, and then click Add.
The Nested values are used to build nested search queries.
They include And (both conditions true), Or (either
condition true), Nand (both conditions false), and Nor (either
condition false).
- Once you have completed your query, click OK.
The Query Selection Dialog window opens with the new
query listed.
- Click OK to return to the RAS Search page
of the Search window. The query is added to the Query list.
Results
Now you can run this query any time you open the Search window once
you specify the query and scope and click
Search.
Note: Searching
on Rational® XDE or
DeveloperWorks repositories using queries is not fully supported. Nested search
queries are treated as simple keyword searches and any nesting values are
ignored.