FORMULA LANGUAGE


@AllDescendants
Example

Includes all response and response-to-response documents for parents that match selection criteria.

Syntax

SELECT selectionFormula I @AllDescendants

Return value

Selects all the documents that match selectionFormula plus their responses and responses-to-responses, for as many levels of response documents as exist.

Usage

@AllDescendants can only be used in a view selection or selective replication formula. It must be appended to the end of a selection formula using the Boolean OR operator ("|"). Don't use it within complex expressions in a formula.

@AllDescendants allows you to define a view as a set of documents that match a given formula plus all the responses to those documents, at any level. It also allows you to create a selective replication formula to replicate a set of documents along with all responses.

Selection formulas that use @AllDescendants may provide a significant advantage to formulas that use @IsResponseDoc. While @IsResponseDoc returns True for any response document in a database, @AllDescendants returns only those responses that are descendants of matching documents.

Example
See Also