4D v16.3Adding columns and labels |
||
|
4D v16.3
Adding columns and labels
Adding columns and labels
You create a report by adding columns containing field references or formulas. You can add and organize field columns in two ways:
Adding formulas is described in the Adding calculations section.
You can work with columns directly in the report template or using the list window (see the following section). You can add, insert or duplicate columns in the report design template. When you add a column, the editor automatically uses the next "available" field of the current table, in the order of creation. You can use the (+) icon that is shown at the top of each column separator:
Each column of the report has a pop-up window that you can use to insert another column: either before or after the existing one, or at the beginning or end of the report. A pop-up window is also available at the top left corner of the report design template:
You can also duplicate a column using the pop-up window available when you right-click on its header: just choose the Duplicate this column command and an identical column is added to the right of the original one. You can move a column at any time by clicking on its header and dragging it to a new location. As you specify fields for your quick report, you may want to remove certain columns. To delete a column, right-click on its header, then select the Delete this column command from the pop-up window. You can replace a field with a formula and vice versa:
You can click on the Fields button in order to access the available fields window, where you can organize the columns of the editor displayed in the form of a list. The window has two adjacent lists:
You can add and remove fields in the Report Columns list using the arrow buttons found between the lists, and you can change the order of the fields by dragging them up or down directly in this list. You can also add fields by simply double-clicking them in the Available Fields list. When you click OK, all the changes made are automatically mirrored in the report itself. For example, if you remove or add a field in the Report Columns list, the corresponding column is also removed or added in the report itself; the same goes for any changes made in the field/column order. Note: The search area performs a "contains" type search; i.e., it displays all fields whose name contains the letter(s) entered. You can use the action menu to sort the Available Fields list, or quickly add multiple fields from this list to the Report Columns list
You can add quick report columns whose contents are calculated automatically by formulas when the report is generated. For example, you can add a formula that computes employees’ monthly salaries from an Annual Salary field. To add a formula type column:
By default, the Quick Report editor sizes columns automatically, as reflected in the Automatic Width button. It sizes each column based on the maximum length of data displayed in the column as well as any labels typed into the column. The Quick Report editor sizes the columns when the report is printed. This operation is enabled for a column when the Automatic Width attribute has been associated with it. You can set and view the activation of this option in the pop-up window associated with the column: To view the widths of each column, preview the report on screen by clicking on the Preview button. Because selecting the Automatic Width option changes the column width based on the maximum width of the data in the records being printed, selecting different records can change the column size. You can resize a column manually, which automatically causes the Automatic Width option to be deselected (where applicable). When a column size is set manually, the column text wraps within the specified area. You can add or modify text in the quick report form to label parts of the report. For example, if you requested summary calculations, you can label them by adding text to other cells in the Subtotal and Grand total rows. You can add and modify text as follows:
To add text, double-click on an empty cell in the quick report form. A text insertion point appears in the cell, so that you can enter your label: Note: A local menu also appears so that you can add a calculation. If you are entering a label for a summary calculation, select a cell in the same row as the cell containing the calculation icons. You cannot enter text in the same cell that contains summary calculations. To modify text, double-click in a cell to switch to editing mode. You can also right-click in order to display a pop-up window allowing you to edit or clear the cell contents:
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Design Reference ( 4D v16) |