With the Formula Editor you can use one the powerful formula syntaxes to create and/or modify formula fields or property formulas for a dynamic report. You can use all report fields (database, parameter, other formula fields etc.), a lot of predefined functions, constants and operators and last but not least your own user defined functions in your formula to meet your requirements.

The dialog is divided into the following three main components.
If the report contains a formula field, sql expression field, user defined function or a record- or group selection formula
then it is displayed in the navigator on the left side of the dialog. The navigator enables you to create new formula,
sql expression field, user function, to rename, edit and delete existing ones. Changing the current selection in the navigator will save
the changes on the current formula, sql expression field, or user function and switch to the new selection to edit its content.
This enables you to work on different formulas to edit, rename and delete them without closing the formula editor.
Once a formula, function, sql expression field is selected in the navigator, the editor, property panel, and syntax explorer
will change it's content to the selected element/formula.
If you open the formula editor with the formula button to edit a formula for an element or section property, then the navigator also contains the node for property formulas.

In the tab "Editor" you can enter or edit the formula using the selected formula syntax. You can add fields, functions and
operators using drag and drop from the element selection on the right side of the dialog to the formula.
To make it easier to edit the formulas the syntax elements are displayed in different colors.
The following keyboard shortcuts are available:
In the tab "Problems" you can see the state of the formula. If the formula contains an error or warning then it will be displayed in these tab. Using the tab "Help and Documentation" you can access the i-net Designer help for formulas.

Besides changing the formula name you can select the used formula syntax in the tab "Properties". Currently there are two languages available for formulas: (Visual) Basic Syntax and Crystal Syntax. The second combo box enables you to define, how i-net Clear Reports should treat empty database fields in formulas. The property "Value Type" displays the return type of this formula. This is determined automatically.

The formula element selection trees on the right side of the dialog contains lists of all available field elements, functions, operators, constants, and syntax elements in the selected formula language. These includes user functions, user defined functions and proposals for the property formulas. The list is divided into four separate trees: report field elements, functions, operators, and constants. For additional information about a function, operator or constant item, hold the cursor over this element. The tool tip will provide detailed information such as parameter description and information about the return type of the function. Select a tree node and press F1 for a more detailed description including examples. You can use the instant search (search as you type), to find a formula element by name or parameters. Use double click or press "Enter" to insert the selected formula element at the cursor position or use drag and drop to insert the formula element into the formula.

To save the formula(s) click on the "Ok" button. Click "Cancel" to close the dialog and undo all modifications since the last click on "Apply".
i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.