To nest queries, assign them to child elements.
Procedure
- In Document Studio, open the Data Source Schema view.
- Drag an element from the Data Source Schema view
to the template element. When a query is dragged onto an
element that has parent element, the dragged query is checked whether
it can be run in the context of a parent element query. All the queries
that can serve as context are displayed in a Select Context window.
The list displays the ID and its textual representation.
- Select the query context from the list. Selecting
none for the context results in two unrelated nested queries.
- Click OK.