FORMULA LANGUAGE


@DocDescendants
Example

In a column or window title formula, returns the number of descendant documents or subcategories belonging to the current document or category. Where @DocChildren only counts direct descendants, @DocDescendants counts all descendants, regardless of level.

Syntax

@DocDescendants
@DocDescendants(
defaultString )
@DocDescendants(
zero­string; defaultString )
@DocDescendants(
zero­string; one­string; defaultString )

Parameters

defaultString


zero-string
one-string
Return value

The return value can be either special text or text:

numChildren


childString
Usage

Use @DocDescendants in window title and column formulas, when you want to indicate the total number of responses (at all levels) to a particular document, or the total number of documents within a particular category. This function does not work in any other formula.

This @function is calculated when the document is opened. Results are undefined in cases where the document is not opened, such as printing from a view.

You cannot use this function in Web applications, except in column formulas.

Language cross-reference

DescendantCount property of LotusScript NotesView class

DescendantCount property of Java View class

Example
See Also