A rank is a component that is based on the value of another component - a DBField, formula, summary, or parameter. One or more values for these fields can be mapped to an image known as the rank. The rank component allows you to convert raw data values to easy-to-understand graphical cues or to hide sensitive details but still convey the general data value to the report end users.
To insert a rank into a report:
on the Insert toolbar.The Rank Expert dialog appears. See the dialog.
Select the field you want to insert as rank from the list box. You can also create formulas, summaries, and parameters here.
or
to add or delete a range. To adjust the order of the ranges, click
or
. A value, which is larger than or equal to the minimum value of a range and less than the maximum value, will be displayed as the image, or the alternate text if the image cannot be loaded or is unavailable. For a value belonging to two or more overlapping ranges, the highest range in the Value Range box will take effect.Notes:
Suppose that you want to define product quality rank based on customer grading, and you want to define three levels:
50-70, Poor
71-90, Good
91-100, Excellent
Specify the following in the Value Range box:
to add another line. Set the minimum and maximum values as 71 and 90, select another image to represent the rank and enter Good in the Alternate Text cell.You have successfully defined a rank for product quality.
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 rank component example, open <install_root>\Demo\Reports\SampleComponents\Rank.cls.