@accfa() Function |
![]() ![]() ![]() |
@accfa() (Accumulate from ADOM) function is similar to the @acc() function with a difference that the @accfa()function loops over the "item" nodes of the given ADOM to accumulate a result and returns it. Syntax: @accfa(adom-name, [precondition], accumulate-by-expression[, delimiter]) adom-name The name of the ADOM whose item nodes will be traversed. An ADOM scope ("r","s" or "a") can be given prior to a ":" character. If omitted "s" (session) is assumed. precondition If this parameter is not left blank it is tested as a precondition for each item node existing in the ADOM and if the result is true, only then the accumulation is performed. accumulate-by-expression For each item node of the ADOM that satisfies the precondition this expression will be evaluated and accumulated in the result. delimiter This optional parameter can be used when accumulating string data and it will be placed between accumulate-by-expression values. The delimiter is not placed for the first accumulation. Examples:
|