Filtering cross references in a query is easy within Cradle.
Showing Cross References in a Query within Cradle
In this example we will create a query that shows links between all system requirements linked to all verifications.
- Create a query that shows all system requirements
- Then create a nested view which shows links to verification items
![View Details dialog filtering cross references](https://www.threesl.com/blog/wp-content/uploads/2022/09/view_details.png)
This will display as shown below:
![Query showing linked items](https://www.threesl.com/blog/wp-content/uploads/2022/09/query-1.png)
In this example 97 items are returned.
Show only Items that have a Linked Item
To only show items that are linked to one or more verification item, edit the Query Details dialog:
![Query Details filtering cross references](https://www.threesl.com/blog/wp-content/uploads/2022/09/query_details.png)
which displays as follows:
![Query showing linked items](https://www.threesl.com/blog/wp-content/uploads/2022/09/query-2.png)
As you can see the list of items has now reduced to 43.
Show Items where Linked Item has a Category set
To only show items where the verification has a PASS value set in a category, a query is created.
- Create a query that only shows verifications that have a Pass value set:
![Query Details showing category set](https://www.threesl.com/blog/wp-content/uploads/2022/09/query_details-1.png)
![Query showing passed items](https://www.threesl.com/blog/wp-content/uploads/2022/09/query-3.png)
Refer to this query in the Links tab of the Query Details dialog. Note that instead of using To Items set to Of Type, we have chosen Matching Query:
![Query Details filtering cross references](https://www.threesl.com/blog/wp-content/uploads/2022/09/query_details-2.png)
You can now see the list has reduced to 28 items. These being the system requirements that have a Pass for one or more of the linked verifications.
![Query showing passed linked items](https://www.threesl.com/blog/wp-content/uploads/2022/09/query-4.png)