projectdoc Toolbox

Renders a single result of a calculation provided by the Calculation Macro.

Identifier
projectdoc-calculation-result-macro
Since
6.0

The Calculation Macro allows to calculate a number of values derived from a set of document, but allows only to render at most one of these values. This macro allows to reference a value from that set and render it.

Parameters

The macro is configured by the following parameters.

Calculation ID

Specify the identifier of the calculation.

This is the value of the Identifier Parameter of the Calculation Macro.

Formula Name

Specify the name of the formula that provided the calculation.

Result Type

Allows to select the type of result to pick from the referenced formula.

IdentifierDescription
representationSelects the representation calculated by the formula in Output Format. This is the default.
literalSelects the result calculated by the formula in Output Format.
resultSelects the result calculated by the formula in Formula Format.
countSelects the count of documents that provided a value for the calculation of the referenced formula. Result is rendered with an integer format.
sumSelects the sum of all Document Formulas' values calculated with the referenced formula. Result is rendered with the Formula Format.
prodSelects the product of all Document Formulas' values calculated with the referenced formula. Result is rendered with the Formula Format.
minSelects the minimum of all Document Formulas' values calculated with the referenced formula. Result is rendered with the Formula Format.
maxSelects the maximum of all Document Formulas' values calculated with the referenced formula. Result is rendered with the Formula Format.
avgSelects the average value of all Document Formulas' values calculated with the referenced formula. Result is rendered with the Formula Format.
allRenders all values in a table for debugging purposes. This is not limited to values specified for the Calculation ID or Formula Name.

Identifier

The unique HTML identifier of the element being rendered.

CSS Classes

List of HTML class names to be added to the rendered HTML element.

Render no Result

If the referenced result is not found, the result is rendered as a short text message. If this should not be rendered at all, check this box.

No Result

Text to be rendered if no result is available.

Related Macros

Calculation Macro
Run calculations on a set of result documents and renders the results.
Property Calculation Macro
Execute a calculation in the context of a property value.