![]() |
Next Page |
| Contents > Creating a database > Setting options for fields > Defining global fields (fields with global storage) |
|
|
| Defining global fields (fields with global storage) |
| A field that uses global storage contains one value that's used for all records in the file. Fields defined with global storage are also referred to as global fields. |
| To define global storage options for a field: |
| 1. | With the database open, choose File menu > Manage > Database. |
| 2. | In the Manage Database dialog box, click the Fields tab. |
| 3. | If your database contains more than one table, select the appropriate table from the Table list. |
| 4. | For Field Name, type a name for the field. |
|
|
See About naming fields. |
| 5. | Click Options (or double-click the field name). |
|
|
Click the Storage tab, then select Use global storage (one value for all records). |
| 6. | To create a repeating field, enter a value greater than 1 for Maximum number of repetitions. |
| 7. | Click OK. |
| 8. | Continue to define fields or click Done. |
| Notes |
| You can use a global field: |
|
|
| You can use variables instead of global fields for temporary data storage. See Using variables. |
| You can't use a global field to find records. |
| If your file is shared, only the host's changes to global field data are saved. Changes are saved only when the file is closed. |
| If a file is shared, some calculations that include global fields are evaluated on the host instead of on the client. The host performs the evaluation in the following situations: |
|
|
|
|
|
To accurately evaluate these calculations on the host, FileMaker Pro transfers all the global field values in the current table from the client to the host. If you know that certain global fields will never be used in unstored calculations or record access calculations, you can improve database performance by creating these global fields in a separate table. This will prevent unneeded global field data from being repeatedly transferred to the host. |
|
|
For more information about calculations that evaluate on the host instead of the client, see Solving calculations on a host machine. |
| Related topic |
| About match fields for relationships |
|
|
| Contents > Creating a database > Setting options for fields > Defining global fields (fields with global storage) | Next Page |