BackPrevious Page Next PageNext

Special Fields

Special fields supported by JReport

Inserting special fields in a report

Adding conditional formats to special fields

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 special field example, open <install_root>\Demo\Reports\SampleComponents\ForSpecialFields.cls.

Special fields supported by JReport

Special fields are defined by JReport and allow you to easily obtain system information and report-related data and add it to your report. The special fields are as follows:

Date-time

Lists all the datetime type special fields.

Computed

Lists all the special fields that are computed based on the report.

System

Lists all the special fields which get values from the system.

Note: You can insert all special fields into web reports and library components in JReport Designer. However, due to the characteristics of Web Report Studio and JDashboard, only these can be rendered and edited at runtime: User Name, Modified Date, Modified Time, Fetch Date, Fetch Time, Print Date, and Print Time.

Inserting special fields in a report

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

To insert a special field into a report:

  1. Position the mouse pointer at the destination where the special field is to be inserted.
  2. Click Insert > Special Fields or Home > Insert > Special Fields, and select the required field from the drop-down menu.

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

Adding conditional formats to special fields

You can add conditional formats to special 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.

Conditional format can be applied only to the two special fields: Page Number and User Name.

To add conditional format to the special field Page Number/User Name, 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