Archibus Fields Table
The Archibus Fields table (afm_flds) describes all the available data fields in the schema. The Archibus Fields table, along with the Archibus Tables table, forms the data dictionary and defines conceptual representation of the tables and fields in a project.
Access the Archibus Fields table from the following tasks under System / Add-In Manager.
Task | Program | Description |
---|---|---|
Edit Archibus Field Dictionary | Smart Client | Presents the Archibus Fields table in a grid for complete editing. |
Edit Archibus Field Dictionary | Web Central | Presents the Archibus Fields table for viewing and the ability to edit a few selected fields. |
Add Field task | Web Central | Presents a form for entering the key properties of a record in the Archibus Fields table. |
Edit Archibus Data Dictionary |
Web Central Smart Client |
Presents the Archibus Tables table, from which you can select a record in the Archibus Fields table. You can delete records from this view and you have access to editing all fields. |
Implementing your Changes
In order to implement an edit you make to this table, you need to take additional actions.
Action | Description |
---|---|
Update the Physical (SQL) Tables | Deleting records from this table, adding records to this table, and editing some of this table's fields changes the structure of the database and requires that you run the Schema Change Wizard to update the SQL tables with the new definition. For information on what edits require that you run the Schema Change Wizard, see What Constitutes a Structural Change to the Database? |
Reading the New Values into Memory |
Since data dictionary information is cached, when you make changes to a data dictionary component (regardless of whether the physical structure of the database changed), you need to clear the memory and reread the new values into memory. You can do this by restarting the application server. If your SaaS deployment is hosted by Archibus, this requires contacting Archibus technical support and requesting a restart of the cloud environment. |
Defining a Field
The Archibus Fields table has the following fields:
Field |
Purpose |
---|---|
Table Name
|
Stores the name of the table to which the fields belong. |
Field Name
|
Stores the name of the fields in the tables as they appear within the Archibus database server. Fields that begin with the prefix "udf_" are user-defined fields, created by a user with special security from a view such as Define Rooms. |
Size |
Specifies the maximum data storage width of the data in fields used for Char and Numeric field types; all other field types have a fixed storage size. The program also uses this value for:
|
Decimals |
Specifies the number of decimal places. Numeric fields use this to determine the data storage size of the field. While other numeric types have a fixed data storage size, they still use this value to determine how to format numeric values for display. |
Allow Null |
Indicates whether the program should allow Null values in the field. Select "Yes" for any data that must always be entered, such as the "Interior" versus "Exterior" distinction for gross areas. |
Primary Key
|
Specifies whether the field is part of the primary key for the table. Enter non-zero if the field is part of the primary key, and a number to indicate which part of the key. Changing the PKey fields for an existing table is not typical nor should be done lightly. You should only change PKey fields to be existing fields that already have unique data in them. |
Validating Table |
Presents the name of the table in which to find a valid value. For example, to validate the bl_id field, you must specify the Buildings table (bl) as the validating table. |
Fields to Validate |
Specifies the foreign key fields within the table you are currently defining into a single part or multipart key. It is this key that will be validated against the primary key of the validating table. If omitted, the program uses the fields in the current table whose field names match the field names of the primary key fields of the validating table. |
Field Heading |
Presents the heading used in table-format edit forms and reports. |
Single-Line Heading |
Presents the heading used in record-format edit forms, record-format reports, and in displaying the field title in list boxes with field names (e.g. the Select Fields dialog). If omitted, the Field Heading is used for these purposes. For the Single-Line Heading field, the program adds ":" to the end of the field if it does not end in "?". For example, "Dept. Area" appears as "Dept. Area:" while "Is Open?" appears as "Is Open?". If you leave the Single-Line Heading field blank, the program obtains a value from the Field Heading whenever it needs a single-line heading. Generally, you only need to specify a single-line heading when you want to use an abbreviation. |
Domain |
Associates a domain with the field. If more than one domain uses the field, complete with "All." Note that it is not necessary that the domain specified for the field match the domain associated with the owning table. Sometimes a table is primarily associated with one domain but some fields are used by others. Restrict on this field if you need to locate all the fields used by a particular domain. For user-defined fields created with the View Configuration feature, this value is set to User. |
Archibus Type |
You use the following types to specify the field's special use in Archibus. For information on this field and data types, see Archibus AfmType vs Database Data Types.
|
Comments |
Provides general comments or notes about the fields. |
Data Type |
Each field you create is of a particular data type as understood by the SQL server program and Archibus. The possible data types are:
|
Review Group |
Specifies a security group to which a user must belong in order to see the field in a view. |
Edit Group |
Specifies a security group to which a user must belong in order to edit the field. |
String Format |
Refines the Char type to dictate what type of characters you can enter in the field.
|
Edit Mask
|
This field was used in the Archibus Client/Server for forcing certain values to follow predefined patterns. It is not used in current versions of Archibus. Defines a format for editing strings, such as "NNN-NNN-NNNN" for phone numbers. Used only if the String Format is "Mask." Edit masks can be composed of a series of numbers and letters, or mixes of letters and numbers, separated by non-numeric separators, such as hyphens, semi-colons, and parentheses. "(999)999-9999" and "AA-NN" and "(aaa)999-bbb" are all valid edit masks. |
Minimum Value
|
Specifies the smallest possible value, used only for DATE, TIME, FLOAT, and INT data types. Enter "CURRENT" for date and time if you want to use the system's date and time. You must specify dates in ISO CCYY-MM-DD format and times in ISO HH:MM:SS format. |
Maximum Value
|
Specifies the largest possible value, used only for DATE, TIME, FLOAT, and INT data types. Enter "CURRENT" for date and time if you want to use the system's date and time. |
Default Value
|
Specifies the default value to enter in the field when starting a new record. Fields with default values receive an initial value even if they do not appear in the grid or are not normally updated by the drawing. Enter "CURRENT" for date and time if you want to use the system's date and time. Use "AUTOINCREMENT" to define a single part primary key field for auto-numbered tables. |
Numeric Format
|
Specifies the format for the Numeric type of data.
|
Enumeration List |
Provides a restricted list of values to indicate that an Integer or Char field is a list box. The field holds pairs of data values and display values, separated with a ";". The data value is the actual value stored in the table, a unique abbreviation within the list. The data value can be Integer or Char depending on the "Data Type" of the field. The display values are the values shown to the user in pick lists and the values with which users complete the field. The order in which the field lists the possible values is the order in which they appear to users. Enumeration List fields should be configured to NOT Allow Null values AND to have a Default value that is typically the first stored value in the stored/display value selection list. When fields are not defined to this convention, Web Central will not correctly export data. |
Field Attributes |
If you set a field to Archibus Type "document", use this field to control if the field supports multiple versions of a document, the maximum size of documents, how locks are cleared, and so forth. This field holds XML. For information, see How to Add a Document Field. |
Field Grouping |
This is not currently implemented in Archibus. It may be used in future releases. |
Is Asset Text?
|
Specifies whether to display the field data as asset text with any asset symbols connected to this table. If the field value is non-zero, the specified number determines the order in which drawings display the fields as asset text. |
Validate Data? |
When set to No, permits a field to not be validated, yet still present the Select Values dialog. This is known as pick-list style validation. For example, if a Contact field has this value set to No, the user can select a value from the validating Employees table using the Select Values dialog. However, they can also type in any name in the field, even if it does not exist in the Employees table. |
Is Telecom Traceable Field?
|
For Client/Server, dictates whether the field should appear on dialogs and reports that trace voice and data communication, and the order in which fields describing the same device should be listed. A value of 0 means that the field should not appear on trace results; a non-zero value tells the program to include the field. If you want the trace results to include a device's primary key along with supplementary information describing the device, you can set the device's primary key field to 1 and assign each supplementary field a number that indicates it position on detailed traces. For example, set Cable Code to 1 and Cable Standard Code to 2 to have the Cable Standard value follow the Cable Code value on a detailed trace. |
Promoted? | Users with special security can use the View Configuration feature of certain views to "promote" stock fields in the schema to make them available in selected views. The value of this field is Yes for fields promoted in this manner. See promoted field. |
See also