Using the Fields Panel

The Fields panel provides an easy way to place data fields, system fields, calculated fields, and variables on a layout. The Fields panel will list all the available data fields for your layout. [Picture]

Placing Table Fields

  1. If the Fields panel is not visible, select View > Drag-Drop List or click .

  2. Select what to place on the form. Make a selection from the drop-down list at top. The options are:

  3. If you are placing titles:

    1. Depress if you want the titles to be placed above the fields. After fields have been placed on the form, you can change the style, appearance, and other attributes of the fields.

    2. Depress if you want the titles to be place to the left of the fields.

  4. To place one or more data fields, select them and drag them onto the layout.

  5. By default, fields initially appear as Type-In controls. You may right click on the control, select Properties..., and change the type of data control to be displayed. Refer to Setting Field Properties. [Picture]

When adding multiple fields, you can specify their alignment as vertical or horizontal by clicking on the appropriate alignment button in the Fields panel.

Placing Summary Fields

When you are working with a form based on a set, you may want to summarize child table fields. To create a summary field:

  1. If the Fields panel is not visible, select View > Drag-Drop List or click .

  2. Click to enable the Summary Genie.

  3. Drag the field onto the layout. The resulting dialog box will depend on the data in the field you selected. The following show a the Summary Genie that appears when the field contains a numeric value. [Picture]

  1. Select the summary calculation. Depending on the type of field, the options are to display:

  2. If you select "Other summary function", you may select one of the following options:

  3. Alpha Five makes assumptions about how to perform these summaries. You may click Advanced to display the Summarization Advanced Settings dialog.

    1. Optionally, change the way records were grouped to calculate the summary. The options are:

    2. Optionally, change the name of the calculated field that will be created.

    3. Optionally, change the total display length of the field.

    4. Optionally, change the number of decimal places that will be displayed.

    5. Click OK to continue or Cancel to discard your inputs.

  4. Click Finish to place the field or Cancel to discard your inputs.

Creating and Placing Calculated Values

The Fields panel also contains an entry labeled "<New Calc/Summary Field>". If you drag this entry onto a layout, a dialog box appears for entering an expression, the result of which is displayed on the layout. Using a calculated value you can display the result of a calculation using data from the current table or set. In addition, calculated values can also display a date and time.

For example, you have an invoice form on which you want to display the total of line-items. The easiest way to create a calculated value is by dragging "<New Calc/Summary Field>" from the Fields panel to a layout. [Picture]

New Calculated Field Dialog Box

To place a calculated field:

  1. If the Fields panel is not visible, select View > Drag-Drop List or click .

  2. Select and drag "<New Calc/Summary Field>" onto the form.

  3. When the New Calculated Field dialog appears, enter the Name of the new field.

  4. Enter the Expression that defines the field or combination of fields that provide the data for the calculation. Optionally, click to display the Expression Builder to help you define this calculation expression.

  5. Select the Function you would like to perform. The options are:

Below are some examples of typical calculations:

Description

Name

Expression

Function

Calculates 5% sales tax using the Subtotal field

TAX

INVOICE->SUBTOTAL*.05

Value

Calculates the total of line-items, given that the total of each item is stored in the field Total of the Item table.

TOTAL

ITEM->TOTAL

Total

Evaluates to today's date

TODAY

DATE()

Value

Note : Calculated fields can be created for a specific form, or for a table or set. If you create them for a form, they are available to only that form. For more information on creating calculated fields for a table or set, refer to Functions and Expressions.

  1. Optionally, click Advanced >>> to display the Group and Sub group fields.

    1. Optionally, change the way records were grouped to calculate the summary. The options for the Group field are:

    2. Optionally, change the way records were sub-grouped to calculate the summary. The options for the Group field are:

Placing System Fields

Alpha Five provides predefined system fields that you can add to your layout. These system fields can display information such as Page numbers, current date, and sort order. System fields are global fields that are available throughout the Alpha Five program. You use the Drag-and-Drop List to insert system fields in a layout.

The following table describes Alpha Five system fields:

Field

Description

PageNumber

Prints the current page number of the layout. This predefined calculated field uses the PAGENO() function as its expression. See also Inserting Page Numbers.

PageXofY

Prints the page number and the total number of pages in the layout. For example, a field value of Page 1 of 8 indicates the first page in a eight page Report layout.

Date

Prints the computer’s system date on the layout. This predefined calculated field uses the DATE() function as its expression. See also Inserting Today’s Date.

Current_Order

Prints the sort order expression for the layout. This predefined calculated field uses the CURRENT_ORDER_EXPN() function as its expression.

Current_Filter

Prints the record selection expression on the layout. This predefined calculated field uses the CURRENT_FILTER_EXPN() function as its expression.

Layout Name

Shows the name of the current layout.

Data Source

Shows the name of the table or set on which the layout is based.

To place a system field:

  1. If the Fields panel is not visible, select View > Drag-Drop List or click .

  2. Select and drag the selected system field onto the layout.

Creating and Placing Layout Variables

You may create a variable when you are editing a layout. To create and place a layout variable:

  1. If the Fields panel is not visible, select View > Drag-Drop List or click .

  2. Optionally, select and drag the selected form variable onto the layout.

  3. Optionally, select "<New Variable>" and drag it onto the layout.

    1. In the resulting New Variable dialog enter the Name of the new variable.

    2. Select the Type of the variable. The options are:

    3. Click OK to create and place the variable or Cancel to discard your inputs.

Supported By

Alpha Five Version 5 and Above