Saving and sharing queries
To save a query
Save a query by using the Explore > Query option. You can mark the query as a favorite by selecting the Favorite check box. The saved queries are listed on the User Queries tab. For more information about queries, see Searching-your-data.
To perform actions on individual queries
Individual queries in the My Queries and Shared Queries lists have an Actions menu that enables you to perform operations on that query. You can:
Operation | Description |
---|---|
Run | Run the query. |
Edit as new | Use the saved query as the basis for a new query. A copy of the query is opened to edit in the Edit window appropriate to the query type. The original query is not modified. Not available on the Shared Queries view. |
Edit saved | Edit the currently selected query in the Edit window appropriate to the query type. Not available on the Shared Queries view. |
Copy | Make a copy of the query and open it in the Edit window appropriate to the query type. |
Share/ Unshare | Share or unshare the selected query |
Destroy | Delete the query. You must confirm the request. An administrator user can delete any other user's shared queries. |
To share saved queries
To share queries, perform the following steps:
- Go to Explore > Query.
- Click the User Queries tab and for the Show field, select My Queries.
A list of saved queries is displayed. - Select the check box for one or more queries that you want to share.
From the Actions menu, select Share.
The shared queries are available under Shared Queries.
To unshare queries
To stop sharing a query, perform the following steps:
- Go to Explore > Query.
- Click the User Queries tab and for the Show field, select My Queries.
- Select the check box for one or more queries that you want to stop sharing.
- From the Actions menu, select Unshare.
The query is removed from Shared Queries.
To export or import queries
You can export or import queries in XML format. This option helps transfer queries between appliances. This is also useful when you want to preserve queries before deleting the contents of the datastore with model wipe or when setting up a new appliance. Also, if you need to share complex queries with the BMC Support team or across communities, this feature comes in handy.
To export a query
- Go to Explore > Query.
- Click the User Queries tab and for the Show field, select My Queries or Shared Queries, depending on whether you want to export saved queries or only the shared queries.
- Select the check box for one or more queries that you want to export.
- From the Actions menu, select Export.
The query is downloaded on your system with a default file name, UserQueries.xml.
You can use this XML file to transfer the queries between appliances, share with the Support team, or for other purposes.
To import a query
- Go to Explore > Query.
- Click the User Queries tab and the click Import Queries.
The Import Queries dialog box is displayed. - Click Choose File, browse to the folder containing the query XML file that you want to import, and select the file.
- Click Import.
A message, Query import complete is displayed and the query is listed in the My Queries section.