Skip to main content

FieldLogs

Adding an Object Key or a Property to an Object Model

After creating the Object model, you need to add an Object key. The Object key/primary key contains a unique value for each row of data and cannot be null.

Then, you can add simple properties that define the type of data that can be entered in the Object. For example, a part number can be an Object key and a model can be a property.

A simple property can also be set as an Object key.

To add an Object key or a simple property:

  1. On the main menu, go to the section Templates.

    Templates_section.png
  2. Select the tab Object_Tab_icon.png Object.

    Object_Tab.png

    The Objects page is displayed.

    Objects_page_to_add_properties.png
  3. Select the Object model for which you want to add an Object key or a simple property.

    Select_Object_Model_to_Edit.png
  4. Click Add_property.png next to the Object model name.

    Select_plus_sign.png

    A list of options is displayed.

    Options_on_plus_sign.png
  5. To add an Object key, select New Object Key.

    New_object_key.png

    To add a simple property, select New simple Property.

    New_simple_property.png

    The fields are displayed under Properties.

    Property.png
  6. Add details in the following fields:

    Field

    Description

    Object Key

    If you are adding a new Object key, this checkbox is automatically selected.

    If you are adding a new simple property and want to set it as an Object key, select the checkbox.

    Property Name

    Enter a property name. It can contain only alphanumeric characters and underscores (_).

    The property name can be modified at any time.

    Property Type

    The property type defines what kind of data can be added under the property.

    Important

    The property type cannot be modified.

    From the dropdown list, select one of the following property types:

    • String - allows input of any data.

      If you choose the String property type, the String maximum length field is displayed.

      String_Maximum_Length.png

      Enter the maximum length of the data that can be input. There is no limit for the string length.

    • Number - allows only numeric data to be entered.

    • Date - allows a date to be entered.

    • Object Key - allows the use of a data entry from another Object.

      If you choose the Object Key option, the Reference Object field is displayed.

      Reference_Object_Field.png

      From the dropdown list, select the reference Object.

    • Boolean - This option is available only when you add. a simple property.

      The Boolean property proposes a checkbox.

    • GPS Coordinates - This option is available only when you add a simple property.

      The GPS Coordinates property allows GPS data to be entered.

  7. Click Save.

    Save_Object_Key.png

    The property is added to the Object model. You can add any number of simple properties as needed.

    Property_added.png

    Note

    The Object key is denoted by the Object_Key_icon.png icon.

    After adding the Object key and simple properties, you can add data to the Object.

You can modify the property name at any time. For String type properties, you can modify the string length. If you selected Object Key as the property type, you can choose another reference Object.

To modify the Object key or property:

  1. Select the Object key or property that you want to modify.

    Select_Property_to_Edit.png
  2. Click Edit_property.png next to the property name.

    Select_Edit_for_property.png

    Note

    You can move the property up or down in the list, by clicking Up_arrow.png or Down_arrow.png next to the property name.

    The fields are displayed.

    Property_fields.png
  3. Make changes as needed and then click Save.

    Modify_property.png

    The changes are saved.

    Note

    If you want to make the property unavailable for use, click Deprecate.

    Deprecate_property.png

    On the confirmation dialog box that is displayed, click Yes.

    The property is deprecated and disappears from the properties list.