Besides making existing dataset fields into persistent fields, you can also create special persistent fields as additions to or replacements of the other persistent fields in a dataset.
New persistent fields that you create are only for display purposes. The data they contain at runtime are not retained either because they already exist elsewhere in the database, or because they are temporary. The physical structure of the data underlying the dataset is not changed in any way.
To create a new persistent field component, invoke the context menu for the Fields editor by right clicking and choose New field. The New Field dialog box appears.
The New Field dialog box contains three group boxes: Field properties, Field type, and Lookup definition.
Special persistent field kinds
Field Kind |
Purpose |
Data |
Replaces an existing field (for example to change its data type) |
Calculated |
Displays values calculated at runtime by a dataset's OnCalcFields event handler. |
Lookup |
Retrieve values from a specified dataset at runtime based on search criteria you specify. (not supported by unidirectional datasets) |
InternalCalc |
Displays values calculated at runtime by a client dataset and stored with its data. |
Aggregate |
Displays a value summarizing the data in a set of records from a client dataset. |
The Lookup definition group box is only used to create lookup fields. This is described more fully in Defining a lookup field.
The following topics describe how to create different field types:
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|