Skip to main content

Add or view a field

You can add a new field to an existing ArcGIS Velocity-hosted feature layer directly from the Layers page without recreating the feature service. This option is available only for feature layers and feature layer views created by Velocity. It is not available for map image layers or stream layers. Velocity adds the new field only to the feature layer and does not update the associated map image layer.

Add a field

To add a field, complete the following steps:

  1. Sign in to the Velocity app.

  2. Click the Layers tab under the Output section.

  3. In the Layers page, click the more options menu next to a feature layer and click Add fields.

    If you need to create a new feature layer, refer to create a hosted feature layer.

  4. In the Add field window, provide the information required to define the new field.

  5. Expand the relevant data type category and choose one of the following for the type of data you want to store in the field:

    Category

    Data type

    Description

    Text

    String

    Any sequence of characters.

    Numbers

    Double

    Numbers with decimal places.

    Integer

    Whole numbers from -2,147,483,648 to 2,147,483,647 (long integer).

    Big Integer

    Whole numbers from -9,007,199,254,740,991 to 9,007,199,254,740,991. Use this type when you need to store numbers that don't fit in the range of the integer data type.

    Dates

    Date

    Store values with date and time.

    Learn more about date and time

  6. Click Next to proceed with defining properties for the field.

    Properties vary depending on the data type.

    1. In the Field name box, type a name for the field.

      Velocity stores the field name in the underlying database. Once defined, the field name does not change. Field names cannot contain special characters, such as spaces, hyphens, parentheses, brackets, or characters such as $, %, and #. Field names also cannot contain diacritic characters or characters that are not in the Latin alphabet. Avoid using field names that contain words that are typically considered database-reserved keywords, such as CHARACTER or DATE. If you attempt to add a field name with special characters or a database-reserved keyword, you receive an error message.

    2. In the Display name box, type an alternative name or alias for the field that is more descriptive and user-friendly than the field name.

      The display name can contain special characters, spaces, and database-reserved keywords. It can also contain diacritic characters and characters that are in non-Latin alphabets.

    3. For string fields, set the Length property, which defines the field's maximum single-byte character length.

      The default is 256 characters.

    4. If the layer does not contain data, turn off the Allow null values option to ensure that editors always supply a value for the new field when adding features or updating attributes.

    5. Optionally, set a Default value for the field. All new features or rows are populated with this value.

  7. Click Add field.

The new field is added to the feature layer.

If the layer is referenced by other items, click the View dependent content option from the more options menu. This lists the affected items and a link to each one. Review this list and update the dependent items to account for the schema change.

View a field

To view a field, complete the following steps:

  1. Sign in to the Velocity app.

  2. Click the Layers tab under the Output section.

  3. In the Layers page, click the more options menu next to a feature layer and click View item details.

  4. On the item details page, click the Data tab.

  5. Click Fields.

The newly added field appears in the field list.