Suppose you have a Component document "Server " with documents for sub components. Now you need to list all documents of type View that are associated with the component or any of its subordinate documents. To limit your search to all documents that have the document named "Server " as their ancestor add Code Block |
---|
| $<AncestorNames>=[Server] |
to your where clause. To filter on the doctype View, you need to append another constraint so that the final where clause looks like this: Code Block |
---|
| $<AncestorNames>=[This Root Page] AND Doctype=view |
|