When you run a query the results are displayed in Detail View—you can just explore the matched items or you can make a new node from the results. For example, query your coding to find everything coded at desalination and industry, then gather all the material into a new node industry perspectives on desalination.
This topic describes what you can do with query results.
What do you want to do?
If you are not sure you want to save query results, you can 'preview' them in Detail View. By default, the Preview Only option is selected for newly created queries.
Create or open the required query.
On the Query Options tab, from the Option list under Results, select Preview Only.
Click Run. The results are displayed in the Detail View.
NOTE The Query Options tab is not available for Word Frequency or Coding Comparison queries.
You can save a query result as a node or as a set.
Click on the query result in Detail View.
On the Explore tab, in the Queries group, click Store Query Results.
The Store Query Results dialog box opens.
From the Option list, select how you want to store the query result. You can choose:
Create Results as New Node Creates a new node, codes all matching contents at the node, and saves it in the selected node folder.
Merge Results into Existing Node Codes all matching content at an existing node. Click Select (beside the Name box) and choose the required node.
Create Results as New Set Creates a new set that includes all project items matching the search criteria.
Add Results to Existing Set Saves the matching items in an existing set. Click Select (beside the Name box) and choose the destination set.
Create Results as New Node Hierarchy Saves the results as a hierarchy using node name as the parent and matching items as the children.
In the Location box, click Select to specify a location for storing the results.
The Select Location dialog box opens. Select the location and click OK to close the dialog box.
Enter a name and description.
(Optional) To automatically open a result node in Detail View, select the Open results check box. This option is not available if you are saving the results in a new or existing set.
Click OK.
NOTE
You cannot save the result of a Word Frequency query as a node but you can create nodes from individual words in the result list—refer to Make nodes from the results of a Word Frequency Query.
You cannot save the results of a Coding Comparison query.
When you create a query, you can specify how you want to store the results before running the query.
To set the options for saving the results:
Create a query.
In the Query Options tab, select how you want to store the query results.
If you are creating a new node or set, define the folder location and give it a name and description. If you are merging into an existing node or set, select it using the Select button next to the Name box.
(Optional) To spread the coding context, select from the Spread to list. For more information about the spread options, refer to Spread Coding.
(Optional) To automatically open the saved results in Detail View, select the Open results check box.
(Optional) If the query does not return any results and you want to create an 'empty' node, select the Create results if empty check box. This option is only available if you have chosen to save the results as a new node, set or node hierarchy.
Click OK.
NOTE
You cannot save the result of a Word Frequency query as a node but you can create nodes from individual words in the result list—refer to Make nodes from the results of a Word Frequency Query.
You cannot save the results of a Coding Comparison query.
When you set the query options to save query results as a node, the default location is the Results folder—a good place to keep result nodes until you decide to add them to your node system. Refer to Specify save options during query set up—before running the query for more information.
While the nodes are stored in the Results folder, you can export, print and work with them in the same way as other nodes. You can also view the query that generated the result.
NOTE
You cannot code at nodes while they are in the Results folder—you need to move them into the node hierarchy. Once you move the node out of the Results folder, you will not be able to view the query that generated it.
You cannot save the result of a Word Frequency query as a node but you can create nodes from individual words in the result list—refer to Make nodes from the results of a Word Frequency Query.
You cannot save the results of a Coding Comparison query.
When you store the results of a query in the Results folder, you can easily view the query that generated the results:
In List View, select the query result.
On the Home tab, in the Item group, click the arrow under Open and select Open Linked Query.
The Query dialog box opens.
You can export query results to a web page, PDF, Microsoft Word, Microsoft Excel, as a rich text or plain text file. The format available will depend on the type of query and how you chose to store your query results.
Click on the item in Detail View or List View.
On the External Data tab, in the Export group, click Export, and then click Export Result.
The Export Options dialog box opens.
Select the required options—for more information refer to Export Options.
Click OK. The Save As dialog box opens.
The exported file is saved to your default location for exported files, you can choose a different location if necessary.
In the File name box, enter a name for the exported file.
In the Save as type box, select the format for the exported file.
Click Save.
NOTE
When you export multiple items, all the items will be exported to the same file type. You will need to select the file type, and then choose the folder to store the exported files.
For nodes that code audio and video sources, the coded sections of media files will be included upon export only if you coded directly on the audio or video timeline.
If you use Microsoft Internet Explorer to view exported HTML files containing audio or video, you may be asked to allow ActiveX controls. Refer to Microsoft Internet Explorer help for details.
When exporting matrices, the Export Options dialog box is not displayed.
Query results for Word Frequency query and Coding Comparison query can be exported as lists from the Detail View. On the External Data tab, in the Export group, click Export, and then click Export List.
To delete query results stored in the Results folder:
In the List View, select the query result.
On the Home tab, in the Editing group, click Delete.
The Delete Confirmation dialog box opens.
Click Yes to confirm.