### Formula Editor dialog

This dialog helps you to create a dynamic formula in a report. See the dialog.

Formula Name

Specifies the name of the formula.

Fields box

Displays a list of those fields that are available for formulas. The fields include the dimension objects and detail information objects in the current business/report cube, and the dynamic formulas that have been created in the report. You can select one field and double-click it to insert the field into the formula text panel at the insertion point.

Functions box

Displays a list of JReport functions that are available for formulas. When you select one function and double-click it, JReport will insert the selected function into the formula text panel at the insertion point completely with its required syntax items (parentheses, commas, etc).

For details about usage of the functions, refer to Built-in functions in the JReport Designer User's Guide.

Operators box

Displays a list of operators that are available for formulas. Select one operator and double-click it to insert the selected operator into the formula text panel at the insertion point.

For details about usage of the operators, refer to Operators in the JReport Designer User's Guide.

Formula text panel

In this panel, you can build and edit your formula. There are several ways to work with formulas:

- Select formula components from the Fields, Functions and Operators panels in the Formula Editor, and then double-click the components, JReport will then insert them in the formula;
- Type your formula in the formula text panel directly;
- Use the above two methods together;
- Paste formula text from the text document of other programs.

Note: If you refer to any field in the formula, the reference name for that field will be prefixed with an @ sign. If the field name contains spaces, the reference name in formula will be quoted with double-quotation marks (""). For example, if the field name is Customer Name, then the reference name will be @"Customer Name".

Check

Tests the syntax of your formula. If the syntax is incorrect, JReport provides an opportunity to correct the errors.

Add Operators

Selects a general operator to be used in the Formula Text panel.

Color Converter

A color palette is provided for you to insert the HEX code of a color simply by clicking the corresponding color in the color palette instead of inputting the HEX code manually.

OK

Creates the formula and adds it to the Resource View panel.

Cancel

Doesn't add the formula and closes the dialog.

Help

Displays this help document.