Adding and Deleting Fields in Views |
|
Note: Fields are the different kinds of data that is filled from your database. A field may be a number, an image, or simply text. These are called primitive or literal fields because they contain only one value. However a field may also be composed of several values. The type of such composite fields is either a class or a collection. In many respects (e.g. adding, moving, deleting, naming) composite fields behave just like literal fields. However they are configured differently from literal fields.
The different kinds of fields are indicated by icons:
Number
Text (String)
Boolean (Yes/No)
Formula
Total (sum, min, max, average)
Class reference or 1:1 relationship (in the source tree)
Class View (Sub view in the view tree)
Collection
Grouped Collection
To add a field:

Just drag it from the source tree to the view tree. It will be added under the currently selected element. (In alphabetical order.) If you drag an element from a related class or table, then a path field will be generated. After dropping it, you can select it and edit the properties (e.g. rename the field)
Path fields are a useful technique to simplify the data model for the report designer. All relevant fields will be concentrated in one view, and the underlying normalized structure of the classes/tables can be hidden. If you do not want to hide the structure then you can use nested views instead.
Note: The sequence of fields in a view is not relevant. Therefore fields are shown in alphabetical order.

If you add a class typed field to the view then this becomes an nested view.

Note:The list of fields always shows exactly the list of fields that are
reachable for your view. You cannot directly add fields from the enclosing type or view. (If you do need it, you can
use a formula with the from() built in function.
In object models with inheritance, you may need to enhance the data model with a
cast
(see sub type below).