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.
1. Note To set options for fields in Table View, right-click the column heading for the field, choose Field > Field Options from the shortcut menu, then skip to step 6.
2. In the Manage Database dialog box, click the Fields tab.
4. For Field Name, type a name for the field.
5. Click Options (or double-click the field name).
6. In the Options for Field dialog box, click the Storage tab, then select Use global storage (one value for all records).
7.
8. Click OK.
9.
• as a fixed value in calculation formulas across all records in a file, or in conditional script steps, such as If, Else, End If, Loop, End Loop, and Exit Loop.
• for fields that rarely need to be updated. For example, use global storage to put your company address on several layouts. You can quickly update the value in a field with global storage without having to update each layout.
• as a match field for a relationship.
•
• 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:
• when a find request is searching an unstored calculation field whose calculation includes a global field.
• during a find request on a table with access privileges that restrict access to certain records, and the calculation that determines record access includes a global field.
• the evaluation of any other record access calculation that includes a global field in order to determine whether to display related data. For example, a record access calculation to determine the rows to display in a portal or the values to display in a related value list will occur on the host if the record access calculation includes a global field.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.