Adding a Calculated User Defined Field

Set up a calculated user defined field (UDF) when you want to include an expression for a specific calculated outcome. Calculated fields are read-only.

Complete the following steps from the Field and UDF Customizations window (Tools > Field and UDF Customizations) to add a calculated UDF:

  1. Select a table of fields from the Properties panel where you would like to add a calculated field. Tables of fields are grouped by module and facility type. Those fields that are common to all facilities are listed in the Common to All Facilities group.

    The grid updates with the fields for the selected table.

    Field and       UDF Customizations

    Field and UDF Customizations

  2. Click Calculated in the toolbar to open the Add Calculated Expression dialog box.

    Add Calculated Expression

    Add Calculated Expression

  3. Type a unique name for the field in the Caption field.

  4. Click the down arrow in the Data Type field and select a data type in the selection list.

  5. If you selected either the Character or Numeric data type, set the length of the field by typing the number of characters required for the field in the Width field. Clicking the up arrow in the Width field increases the value; clicking the down arrow decreases the value.

  6. If you selected the Numeric data type, set the number of decimal places required for the field by typing a value in the Decimals field. Decimals refer to the number of digits that will be shown to the right of the decimal point.

    Numeric fields will have the width and/or decimal values displayed next to the field type in the Field Definition column. For example, a numeric field with a width of 4 and decimal value of 3 will display as Numeric (4,3).

    Once the width and decimal values have been set and saved for a calculated field, they cannot be edited.

  7. Define the expression. Calculations can be creating in either a simple mode or a more advanced mode. The simple mode can be used for simple calculations, while the advanced mode can be used for more complex calculations with one or more operators and/or functions. The following steps describe how to create a calculated expression in either of the modes.

  8. Click Save to save the new field and close the dialog box. window. The field is now included in the Field and UDF Customizations window grid.

    Calculated UDF

    Completed Calculated User Defined Field