Common Features : Using the Repository : Querying Objects : The Advanced Search (Windows Front-End) : Query Result
   
Query Result
After having executed a query by clicking Find, the Result tab appears.
To select all objects in the result tab:
*Simultaneously press keys <Ctrl> and <A>.
Two display modes are proposed:
Reinitialize mode
Cumulative mode
Constituting the result
Reinitializing results
By default, result tab content is reinitialized at execution of each query. In other words, the result tab is emptied and filled at execution of each query.
*Reinitialize is the only mode possible when a query is executed from the query bar.
Cumulating results
You can cumulate the results of several queries in the same tab.
*The workspace toolbar does not allow cumulation of results. Content is systematically reinitialized.
To obtain Cumulative mode:
*In the assistant toolbar of the advanced search tool, click > Cumulative.
*To obtain a cumulative result, do not close the result dialog box after running queries.
In Cumulative mode, the result tab can list objects of heterogeneous types (for example, processes and org-units).
 
Displaying objects common to several result sets
When the cumulative mode is selected, to display objects common to several sets of results, click .
*This button appears only when Cumulative mode is selected.
Displaying results of the advanced search tool
Creating a new tab in the result tab
You can create a new tab so as to avoid mixing results.
To create a new tab in the result tab:
1. Perform a search.
*See "Querying Using the Query Assistant".
2. In the search results window, click Keep result in new window .
Your result appears in a separate tab, allowing it to be kept in case of re-execution of a query.
Customizing result tab columns
By default, the result tab presents the following columns for each object:
short name
long name
You can customize these columns. Each column corresponds to an object property.
To customize columns of the result tab:
1. Perform a search.
*See "Querying Using the Query Assistant".
2. In the search results window, click Show > Customize columns.
 
*The Use Generic Objects option presents query result objects as abstract MetaClass instances.
 
For more details on abstract MetaClasses, see "Abstract Metamodel", page 47.
The Column Display Customization dialog box allows you to add or remove columns for a given MetaClass.
Each new column represents a MetaClass characteristic.
*If you wish to classify result dialog box results by object type, add the MetaClass column.
*For object types in a namespace, the short name is also indicated by default.
Memorizing columns
To store in memory the columns to be displayed when executing future queries:
1. Access the user options (Tools > Options).
2. In the Options tree, select Query.
3. In the right pane, select the Result: Keep displayed columns option.
*To display user options from the workspace, select Tools > Options.
The next time you perform a query, the result window proposes the same columns as those previously defined.
Reinitializing columns
The list of columns displayed depends on the object types of the query.
To reinitialize the columns:
1. Accédez aux options de l’utilisateur (Outils > Options).
2. In the Options tree, select Query.
3. In the right pane select Result: Reinitialization of result list columns option.
After each query execution, columns corresponding to characteristics not connected to queried targets are removed.
Displaying results as a list
By default, results appear in the form of a list .
When Display result objects list is on, duplicates are eliminated (i.e. duplicates of objects that appear in several recent queries).
For example, if the "Urgent Order" organizational process appears in several recent queries (ie. it appears several times in the query tree), it will appear only once in the list.
The Display results as list is equivalent to in the result window.
Displaying queries that produced the result
You can display results as a tree, which enables viewing of recent queries that produced result object collections.
To display query results as a tree:
1. Click Display tree of recent queries and result objects .
2. Double-click the recent queries to show the result objects.
You obtain a tree enabling identification of the different queries executed with their result sets.
Displaying objects common to several result sets
The button is used to restrict the view to only those objects common to all recent queries.
* and buttons only appear when Cumulative mode is selected.
Refreshing result window content
You can rerun execution of queries that produced the list of objects in the result window.
To refresh results:
*In the query result dialog box, click Refresh .
Modifying objects in the result window
You can use the query result window to update the characteristics of objects it contains.
Modifying an object
To modify an object from the result window:
*In the result window, right-click the object and select Modify.
You can then modify the selected characteristic, for example the object name.
Modifying a selection of objects
You can also modify the characteristics of a selection of objects (for example, assign the same characteristic value to a selection of objects).
To display columns corresponding to the different object characteristics, see "Customizing result tab columns".
To modify a selection of objects from the result window:
1. Select the objects you want to modify.
2. Click the object characteristic you wish to modify and in the pop-up menu of the selection, select Modify.
3. Then modify the characteristic value.
4. Press "Enter" to validate.
The data is updated for all objects in the selection.
Generating Analysis Reports
To generate a report from objects selected:
1. In the query results, select the objects.
*To select several objects, use the [Ctrl] key.
2. Click Generate report from selected objects .
The report is displayed. The table columns are the same as those of the list at the time of report generation.
*See "Customizing result tab columns".
This tab allows you to quickly display the list of MetaClasses present in the result dialog box, and the corresponding number of objects.
3. (if needed) Click Send To to send by e-mail the report you have generated.
*To modify the css style sheet of the query report, see "Style sheet location".
See also: "Query Result"