Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleDetails


Section
titleAccess Results from other Calculation Macros

To access the result from another Calculation Macro simply prefix the placeholder reference with the identifier of the macro like this:

Code Block
${macro-id.formula-name}

All values of a formula can be accessed as defined in 

In-Document Link
anchorResult Formula
.


Section
titleResult Formula Calculation only

The macro allows to skip the Document Formula and only provide a Result Formula. This way a value can be calculated by the use of results previously calculated - either by a formula above in the table or by other instances of the Calculation Macro specified previously on the same page.

If no Document Formula is specified, the default results, like SUM or AVG are not present, because the formula does not iterate over the documents in the result set. Only the representation, the literal, and the result are provided.

Example Box
titleNo Document Formula

This example shows how the formula named main uses the value of the revelvance-factor formula of the macro result-repo.

NameFormatResult Formula
mainpercent${result-repo.relevance-factor}*2 + 10%




...