Collapse AllExpand All

3.10. Fields

'Insert Field' Icon

The Field icon enables you to create new field objects. Field objects are used for pulling dynamically generated data into a report from the database the report writer is connected to. For example, a field object may be used to include running totals in a report. By definition, field objects are designed to handle a single line of data. For multiple lines of data, use a text area object.

To create a new field object, first select the Field icon. Then click in the section of the report definition where you want the field to be located. Doing so will create the field object in that section.

Note

For more information on using field objects in report definitions, see the Getting Started chapter.

Once the field object has been created, you may then define the field object's properties. To define a field object's properties, double-click on the field object. The following screen will appear:

Field Properties

Note

By definition, field objects are designed to handle a single line of data. For multiple lines of data, use a text area object.

When defining the properties of a field object, you are presented with the following options:

Query Source

Select a query source from the drop-down menu by clicking on the arrow to the right of the field. Query sources are used to populate report definition objects with dynamic data from the database the report writer is connected to.

Column

Specify the name of the database column you want to use from the selected query source. A query source may refer to multiple columns in its SELECT statement. By indicating a specific column, you instruct the query source to return data only for that specified column. Other columns appearing in the SELECT statement will be ignored.

Note

For more information on query sources and the link between database fields and report definition objects, please see the Getting Started chapter.

Display as Running Total

Select if you want the data retrieved from the database to be displayed as a running total. No running total will be used if this option is not selected.

Note

When running totals are calculated for columns designated as Boolean, the "true" values are assigned a value of "1", while "false" values are assigned a value of "0".

Total Format

If the Display as Running Total option is selected, specify one of the following formatting options:

String Format

Enter a string format to use when formatting the total.

Built-in Locale Format

Select this option and then choose one of the available options from the drop-down menu by clicking on the arrow to the right of the field. Built-in locale formats may only be available in some installations.

Use Subtotal Value

Select if the running total represents a subtotal.

HAlign

Specify how you want text to be aligned horizontally within the field object:

None

Select if you do not want to specify a horizontal alignment.

Left

Select to align text on the left margin.

Center

Select to align text in the center.

Right

Select to align text on the right margin.

VAlign

Specify how you want text to be aligned vertically within the field object:

None

Select if you do not want to specify a vertical alignment.

Top

Select to align text on the top margin.

Middle

Select to align text in the middle.

Bottom

Select to align text on the bottom margin.

Position/Size

Specify how you want the field object to be positioned and sized within the section where it is located.

X

Specify the distance, measured in inches, from the section’s left border to the upper-left-hand corner of the field object.

Width

Specify the width of the field object, measured in inches.

Y

Specify the distance, measured in inches, from the section’s top border to the upper-left-hand corner of the field object.

Height

Specify the height of the field object, measured in inches.

Tip

The position and size of a field object may be modified manually when editing a report definition.

Preview

Displays a preview of the field, using the specified font. Selecting the FONT button will bring up the Select Font screen, where you may specify font name, font style, font size, and font effects.

To the far right of the screen, the following buttons are available:

OK

Select to save your settings.

CANCEL

Closes the screen without saving any changes, returning you to the Application desktop.