Inhaltsverzeichnis

GetRootDocument

The function GetRootDocument () returns the RootDocumentContext.

Syntax

GetRootDocument()

Note: When using functions that return an object tree (e. g. GroupBy, GetAllTradingPartnerLocationDetailsByGLN, etc.), the DocumentContext is lost, with GetRootDocument () it can be determined.

Example

In the example, the source document is evaluated in groups and a target document is triggered for each group break. The root document can then be accessed within the groups to evaluate the header information as usual.

Here you can also see that the function GetRootDocument() can be linked with further XPATH selections.