BackPrevious Page Next PageNext

Formula Fields

Inserting formula fields in a report

Adding conditional formats to formula fields

Formulas are calculated from DBFields, other formulas, summaries, and parameters, so they can present information that DBFields cannot do.

Formula fields in a report can be used as the trigger object of links, and you can change their display types if you want.

See an example: The SampleComponents catalog, included with JReport Designer, contains reports that have examples of how each component type could be used in a report. For the formula field example, open <install_root>\Demo\Reports\SampleComponents\UsingFormula.cls.

Inserting formula fields in a report

Formula fields can be inserted in the report areas listed in Component placement.

Notes:

Adding conditional formats to formula fields

You can add conditional formats to formula fields in a report, then when a specified condition is fulfilled, the format defined on the condition will be applied to the field values automatically. This is very useful to highlight values that might need to be acted on by end users.

To add conditional format to a formula field, right-click it and select Conditional Formatting from the shortcut menu, then take the same procedure as described in Adding conditional formats to DBFields.

BackPrevious Page Next PageNext