Skip to main content Skip to complementary content

Contexts

EnclosingContext

Provides a map element to be used as the context that encloses a loop.

Normally (if this function is not specified), a loop in the output is enclosed by its nearest looping ancestor output map element. Use this function if you wish the enclosing loop to be a higher level output map element. This is useful when you want the loop context for input map elements inside of this loop to refer to the specific enclosing map element's loop instead of the nearest ancestor. This is used in the X12 EDI HL loop special processing.

Though this function specifies variable arguments, it can have exactly one argument.

This function can only be used in the Contexts argument of a loop expression.

Arguments

Variable arguments Add the map element to use as an enclosing loop.

NestedContext

Allows a loop expression to be nested in this loop expression.

When referencing input loops, every level of input looping that is an ancestor to the referenced loop must have a corresponding loop expression in the output. The nesting capability provides a way to refer to multiple input loops within a single loop expression.

Though this function specifies variable arguments, it can have exactly one argument, which is a loop function.

This function can only be used in the Contexts argument of a loop expression.

Arguments

Variable arguments Add a loop expression to use as a nested context.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!