Domains view

Using the Domains view, you can view existing domains and edit their properties and values, delete domains, and create new domains.

Learn more about domains and their properties

While editing in the Domains view, you can navigate the grid with your mouse by clicking in cells, or you can use the Tab or arrow keys to move across rows and up and down columns.

Continuing the workflow from the previous help topics in this section, the following screen capture shows the creation of a new domain called AccessType. This domain will be used to determine the type of access permissions someone needs to enter any given building on campus. This domain is given four valid values: Employees, Public, Maintenance, and Security.

Creating a new domain in Domains view

Open the Domains view

The Domains view can be opened from the following locations:

  • Catalog pane—Right-click a geodatabase and click Domains or right-click the feature class, or table and choose Design > Domains. When choosing a feature class or table, note that the Domains view displays all of the domains associated with the geodatabase in which that feature class or table is stored.
  • Contents pane—Right-click a layer or table and choose Design > Domains.
  • Ribbon—Select a layer or table in the Contents pane. On the Feature Layer contextual ribbon, click the Data tab, and click Domains in the Design group.

Create a domain

To create a domain, complete the following steps:

  1. In the Contents pane, select a layer.

    The Feature Layer tabs become available.

  2. On the Data tab, in the Design group, click Domains Domains.
    Note:

    The Domains view can also be accessed from the ribbon in the Fields view and Subtypes view.

  3. Click the New Domain button New Domain on the Domains tab.

    A new row is created in the Domains view, and your pointer is positioned in the Domain Name column of that row.

  4. Enter a name for the new domain.
  5. In the Description column, enter a description for the new domain.
  6. In the Field Type column, choose a field type from the Field Type drop-down menu.
  7. Choose either Range Domain or Coded Value Domain from the Domain Type drop-down menu.
  8. Choose a split policy from the Split Policy drop-down menu.
  9. Choose a merge policy from the Merge Policy drop-down menu.
  10. In the grid on the right of the Domains view, enter the codes and values for a new coded value domain, or the minimum and maximum range for a new range domain.
  11. When you are finished, click the Save button Save on the Domains tab to add the new domain to the geodatabase.

Note:
When there are unsaved edits in an active map, the Save button is disabled and an information banner alerts you. To enable the Save button again, you need to first save or discard the edits in the map.

Create a new domain from the Fields view or Subtypes view

You can also create domains from the Fields view and Subtypes view.

Click the drop-down menu in the Domain column for any field, and choose either Create new range domain or Create new coded value domain (the Subtypes view only shows the option to create a coded value domain). The Domains view opens with the new domain prepopulated with the properties from the field. After entering the domain properties and clicking Save on the Domains tab, the new domain is available in the Domains drop-down list in the Fields view and Subtypes view.

Apply a domain to a field

Once you have created a domain, you can assign it to a field. You can apply a domain to a field at the feature class level or the subtype level using the Fields view or Subtypes view, respectively. If your feature class has subtypes, it is recommended to apply domains at the subtype level in the Subtypes view.

To apply a domain to a field in either view, double-click in the Domain column of the field you want to apply a domain to and select a domain from the drop-down list. You can then choose an appropriate default value from the drop-down list in the Default Value column.

Dive-in:

When a new subtype is added, any existing domains that are assigned to fields at the feature class level will be inherited by the fields on the new subtype.

Caution:

If your feature class has subtypes, only domains assigned to the fields at the subtype level will be visible in areas of the application outside of the Field and Subtype views, such as the Attributes pane.

Modify or delete a domain

When a domain is created in an enterprise geodatabase, the owner of that domain is recorded. The owner is the user that created the domain. Only the owner of an attribute domain can delete or modify it.

Domains can be associated with particular fields for a feature class or table or for a subtype of a feature class or table. While a domain is being used by a table or feature class, it can't be deleted, but it can be modified.

To delete a domain, click the tab next to the row representing the domain you want to delete. This selects the entire row. Press the Delete key, or use the Delete button from the Clipboard on the ribbon, or right-click the row and choose Delete from the context menu.

The following properties of a domain can be modified:

  • Domain name
  • Description
  • Split and merge policies
  • Maximum and minimum values for range domains
  • Codes and values associated with coded value domains

The domain type or field type cannot be modified once a domain has been committed to the geodatabase by clicking the Save button.

Identify domain usage

An important component of domain management is understanding the domain usage in a geodatabase. The Domain Usage pane is helpful to identify the datasets that are assigned a specific domain for a geodatabase workspace. Domain usage is reported for a geodatabase workspace by displaying datasets in a data grid for review. The Fields and Subtypes design views can be used to explore and make changes to the domain assignment. For example, before deleting a domain from a geodatabase, the Domain Usage pane is helpful to determine what datasets the domain must be unassigned from.

To access the Domain Usage pane, complete the following steps:

  1. Open the Domains view.
  2. On the Domains tab, in the Changes group, click Domain Usage Usage.

    The Domain Usage pane appears with the Workspace populated.

  3. Choose a domain from the Domain drop-down menu. The grid view displays the domain usage for datasets in the geodatabase by providing the following columns:

    • Dataset
    • Field
    • Subtype
    The results can be used to explore the domain assignment. Domain usage results that include a value for the Subtype column have the domain assigned at the subtype level.

  4. Select the row for the domain assignment you want to manage. Right-click the leftmost column of the data grid and click one of the following options:
    • Fields Fields—Open the Fields view.
    • Subtypes Subtypes—Open the Subtypes view.

    Tip:
    Double-click the row to open the Fields or Subtypes design views to explore the domain assignment.
    Use the Fields and Subtypes design views to manage the domain assignment. The Fields and Subtypes design views can be used to manage the domain assignment, or the Remove Domain From Field tool can be used.