Crystal Reports for Rational Application Developer Designer Guide
Creating a formula
You can create several formulas at one
time to handle different criteria, and then insert them in the report.
To create a formula
In the
"Field
Explorer" view, right-click
Formulas and then click
New.
Type the name you want to
use to identify the formula.
Tip: You can also change
the name in the
"Properties" view. Select the
value for the Name property and type the name you want to use to identify the
formula.
Double-click your new
formula.
The formula template is displayed on
the Formulas page.
Create the formula by
typing in the components.
Tip:
Ctrl+Space will
bring up a list of the available functions. (For some locales, you need to use
a different shortcut to allow Content Assist to display the available
functions, such as Alt+/. Check your Eclipse preferences to verify or set the
Content Assist shortcut.) If you've started typing, Content Assist will bring
up a list of keywords that are possible matches for what you've already typed.
Use the Problems
view to identify syntax errors in your formula. To display the Problems view,
from the Window menu, select Show View and click Problems.
To insert a formula into a
report
In the
"Field
Explorer" view, select a formula and drag it to where you want it to
appear on your report.
Note: A formula that is
placed on a report is indicated by @ (for example, @ProcessTime).
From the
File menu, click
Save to save the changes to the report.